Package org.graphstream.graph.implementations

Examples of org.graphstream.graph.implementations.MultiNode


  }

  @Test
  public void testMulti() {
    MultiGraph graph = new MultiGraph("g");
    MultiNode A = graph.addNode("A");
    MultiNode B = graph.addNode("B");

    graph.addEdge("AB1", "A", "B");
    graph.addEdge("AB2", "A", "B");

    assertEquals(2, A.getDegree());
    assertEquals(2, B.getDegree());
   
    // loop edges
    graph.addEdge("AA1", "A", "B");
    graph.addEdge("AA2", "A", "B", true);
   
View Full Code Here

TOP

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

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.