Class NodeData

java.lang.Object
org.glassfish.pfl.basic.graph.NodeData

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
     
    (package private) boolean
    Return whether this node is a root.
    (package private) boolean
    Return whether this node has been visited in a traversal.
    (package private) void
     
    (package private) void
     

    Methods inherited from class java.lang.Object

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

    • visited

      private boolean visited
    • root

      private boolean root
  • Constructor Details

    • NodeData

      public NodeData()
  • Method Details

    • 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()