GraphStream Users

Archives de la liste Aide


Re: How to use FileSource?


Chronologique Discussions 
  • From: "Mordechai Ben-Ari" <Moti.Ben-Ari AT weizmann.ac.il>
  • To: <graphstream-users AT litislab.fr>
  • Subject: Re: How to use FileSource?
  • Date: Sun, 14 Aug 2011 14:31:11 +0300

> Ok. I just add the full code of the example at the end
> of the tutorial. Hope it works .... :)

FileSourceFactory throws an except so I rearranged
the code as follows (also adding g.display() so I can see the graph):

FileSource fs = null;
try {
fs = FileSourceFactory.sourceFor(filePath);
fs.addSink(g);
fs.begin(filePath);
g.display();

Unfortunately, I've now run out of excuses,
so I'll have to start working on this :-).

Thanks

Moti





Archives gérées par MHonArc 2.6.16.

Top of page