Class BFS.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​(BFS.Node<V> parent)
      • depth

        public int depth()
        Gets the depth of this node.
        Returns:
        the depth