Package org.graphstream.stream.file

Examples of org.graphstream.stream.file.FileSourceGEXF


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;
  }
View Full Code Here

TOP

Related Classes of org.graphstream.stream.file.FileSourceGEXF

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.