Class NodeData


  • public class NodeData
    extends java.lang.Object
    Data about a node in a graph.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean root  
      private boolean visited  
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeData()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      (package private) boolean isRoot()
      Return whether this node is a root.
      (package private) boolean isVisited()
      Return whether this node has been visited in a traversal.
      (package private) void notRoot()  
      (package private) void visited()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • visited

        private boolean visited
      • root

        private boolean root
    • Constructor Detail

      • NodeData

        public NodeData()
    • Method Detail

      • clear

        public final void clear()
      • isVisited

        boolean isVisited()
        Return whether this node has been visited in a traversal. Note that we only support a single traversal at a time.
      • visited

        void visited()
      • isRoot

        boolean isRoot()
        Return whether this node is a root.
      • notRoot

        void notRoot()