You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Example you gave at http://gexf.net/gexf4j/ lead me to the question how do you save the gexf-File.
I found StaxGraphWriter and added the following to get the demo saving the file.
It might help if you could add such things to the demo to understand more easily.
At the end I added:
String gexfFileName = "C:/temp/graph.gexf";
StaxGraphWriter graphWriter = new StaxGraphWriter();
FileOutputStream out = null;
try {
out = new FileOutputStream(gexfFileName);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
graphWriter.writeToStream(gexf, out);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
The text was updated successfully, but these errors were encountered:
The Example you gave at http://gexf.net/gexf4j/ lead me to the question how do you save the gexf-File.
I found StaxGraphWriter and added the following to get the demo saving the file.
It might help if you could add such things to the demo to understand more easily.
At the end I added:
The text was updated successfully, but these errors were encountered: