I am new to Prefuse.I am facing problem reading the polbooks.gml file using GraphML Reader. It can successfully read a xml file but not a gml file.Please suggest a solution how to read a gml file in Prefuse. Below is my code for GraphML Reader
package practise;
import prefuse.data.Graph;
import prefuse.data.io.DataIOException;
import prefuse.data.io.GraphMLReader;
public class practise1 {
static Graph graph = null;
public static void main(String[] args){
try{
graph=new GraphMLReader().readGraph("polbooks.gml");
}
catch(DataIOException e){
System.out.print("File Not Found");
}
//System.out.print(graph.getDegree(2));
}
}