Package vg.core.graph

Examples of vg.core.graph.Graph


  public synchronized List<StorableSubGraph> getSubGraphs() {
    List<StorableSubGraph>ssg = new ArrayList<StorableSubGraph>(this.subGraphs);
    return(ssg);
  }
  public synchronized Graph getGraph() {
    Graph g = new Graph();
    for(StorableSubGraph bufSubGraph : this.subGraphs) {
      g.addSubGraph(bufSubGraph.getStorableId(), bufSubGraph.getSubGraph());
    }
    g.setName(this.name);
    g.setRoot(this.rootSubGraphId);
    return(g);
  }
View Full Code Here


  }
  /**
   * This method tests of creating graph.
   */
  public void createGraph() {
    Graph gr = new Graph();
    Assert.assertTrue(gr!=null);
  }
View Full Code Here

    Vertex t2 = new Vertex("T");
    v2.add(t2);
    e2.add(new Edge(t1, t2, "e"+c));
    SubGraph sg2 = new SubGraph(null,v2, e2, true);
   
    Graph g = new Graph();
    g.addSubGraph(0, sg1);
    g.addSubGraph(1, sg2);
    return g;
  }
View Full Code Here

TOP

Related Classes of vg.core.graph.Graph

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.