Package org.geotools.graph.traverse

Examples of org.geotools.graph.traverse.GraphTraversal


      }
     
      public void finish() { }
    };
   
    GraphTraversal traversal =
      new BasicGraphTraversal(graph,walker,iterator);
    traversal.init();
    traversal.traverse();

    if(sorted.size() != types.size()) {
      throw new RuntimeException("Internal error in schema dependency sort");
    }
View Full Code Here


  public boolean containsCycle() {
    //initialize visited counter
    m_nvisited = 0;
   
    //create the traversal that uses the topological iterator
    GraphTraversal traversal = new BasicGraphTraversal(
      m_graph, this, m_iterator
    );
    traversal.init();
    traversal.traverse();
       
    //if all nodes visited then no cycle
    if (m_graph.getNodes().size() == m_nvisited) return(false);
    return(true);
  }
View Full Code Here

TOP

Related Classes of org.geotools.graph.traverse.GraphTraversal

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.