Class GraphTraversal.Node<V>

    • Constructor Detail

      • Node

        protected Node​(V vertex)
        Constructs a node for a spanning tree.
        Parameters:
        vertex - the node
    • Method Detail

      • setParent

        protected void setParent​(V parent)
        Sets the parent of the node.
        Parameters:
        parent - the parent of the node
      • parent

        public V parent()
        Gets the parent of the node.
        Returns:
        the parent of the node
      • vertex

        public V vertex()
        Gets the node.
        Returns:
        the node
      • setVisitTime

        protected void setVisitTime​(int time)
      • visitTime

        public int visitTime()
        Gets the first visit time of this node.
        Returns:
        the first visit time