Package org.graphstream.graph.implementations

Examples of org.graphstream.graph.implementations.SingleGraph


    String fileName = args[0];
//    String fileName = "/home/stefan/tmp/imdb/imdb-full.dgs";
//    String fileName = "/home/stefan/tmp/yoann/test_cleaned.dgs";
    int gCount = 2;
    Graph[] graphs = new Graph[gCount];
    graphs[0] = new SingleGraph("Single");
    graphs[2] = new AdjacencyListGraph("Adj");

    BenchPerformance[] tests = new BenchPerformance[gCount];
    for (int i = 0; i < gCount; i++) {
      System.out.println("Loading graph " + graphs[i].getId());
View Full Code Here


    new TestEdgeExtremities<MyALGNode>(g);
  }

  @Test
  public void checkSingleGraph() {
    Graph g = new SingleGraph("g");

    g.setNodeFactory(new MySingleNodeFactory());
    g.setEdgeFactory(new MySingleEdgeFactory());

    new TestAddRemoveNode<MySingleNode>(g);
    new TestForEachNode<MySingleNode>(g);
    new TestNodeCollection<MySingleNode>(g);
    new TestAddRemoveEdge<MySingleEdge>(g);
View Full Code Here

TOP

Related Classes of org.graphstream.graph.implementations.SingleGraph

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.