GraphStream Users

Archives de la liste Aide

Re: testing my DGS parser

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: Luc Hogie <Luc.Hogie AT>
  • Cc: graphstream-users AT
  • Subject: Re: testing my DGS parser
  • Date: Wed, 29 Jun 2011 15:10:23 +0200

2011/6/29 Luc Hogie <Luc.Hogie AT>
Hi Luc,

Hi Guilhelm,

I can not figure out what kind of tests you are interested in. If this is
really displayable tests, opening a dgs file with your parser and display
the produced graph should be a basic but sufficient test ?

Well I just want to be sure that the parser produces graphs that are what is described in the DGS file. Displaying the resulting graph immediately shows if it's okay or not.

I think you can use TestFileSourceDGS to do that, with some modifications to use
your parser rather than the one of GraphStream.

Can I ask you why you are making a new parser ? We have some new parsers for
DGS (JavaCC and Antlr) for the next version of of the FileSourceDGS.

Because I want my lib to be able to load DGS files. Actually I forgot reusing your code. Are there "abstract" parsers that I can easily use for manipulating my graph structure ?

I don't understand if your library is using GraphStream or if not but you want that this library
will be able to read dgs files ? Because FileSourceDGS in GraphStream is able to load dgs files.

We are actually working on a clear base for implementing parsers. For the 1.0, there is a FileSourceBase
that brings some tools for file sources.


Guilhelm Savin
PhD Student of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page