public class TestFileSourceGEXF {
protected Graph readRessource(String url) {
Graph g = new AdjacencyListGraph(url);
FileSourceGEXF gexf = new FileSourceGEXF();
gexf.addSink(g);
try {
gexf.readAll(getClass().getResourceAsStream(url));
} catch (IOException e) {
fail("IOException occured");
}
gexf.removeSink(g);
return g;
}