GraphStream Users

Archives de la liste Aide


Not a regular file error


Chronologique Discussions 
  • From: Zakaria Boulouard <zboulouard AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Not a regular file error
  • Date: Mon, 15 Feb 2016 14:30:16 +0000

Hello,

I would like to open a ".gexf" file using graphstream. I followed the tutorial in here but it gave me this error : 

java.io.IOException: not a regular file 'sources/small-world-1.gexf'

This is the code I made :

public static void main(String[] args) {
String filePath = "sources/small-world-1.gexf";
Graph g = new DefaultGraph("g");
FileSource fs = null;
try {
fs = FileSourceFactory.sourceFor(filePath);

fs.addSink(g);
fs.begin(filePath);

while (fs.nextEvents()) {
// Optionally some code here ...
}
fs.end();
} catch( IOException e) {
e.printStackTrace();

}

What did I do wrong ? And how can I fix it ?

Thanks!
--
Zakaria BOULOUARD
Doctorant-Ingénieur en Intelligence Économique
N° Téléphone: (+212)662193321



Archives gérées par MHonArc 2.6.16.

Top of page