Class Graph


  • public class Graph
    extends java.lang.Object
    A simple graph class.
    See Also:
    GraphNode
    • Constructor Detail

      • Graph

        public Graph()
    • Method Detail

      • getRoot

        public GraphNode getRoot()
        Returns:
        The root of the graph.
      • setRoot

        public void setRoot​(GraphNode root)
        Set the root of the graph.
        Parameters:
        root - The root node.
      • getNodeCode

        protected static int getNodeCode​(GraphNode n,
                                         java.util.Vector<GraphNode> nodes)
      • collectNodes

        public static void collectNodes​(GraphNode n,
                                        java.util.Vector<GraphNode> nodes)