The type of the value stored in the node.
Constructor for GraphNodeBase
.
The value of the node.
The nodes adjacent to this one in the graph.
Stores whether a node has been traversed, used in some algorithms.
The value stored in a node.
Gets the connected component of a node in a graph. When called from a child class, the return type of this function will always match whatever the type of neighbors
is.
This function shouldn't be called directly: use getComponent
instead.
The connected component of this
.
Gets the connected component of a node in a graph. When inherited, this method should have the return type of the associated graph class.
The connected component of this
.
Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM
A base class for graph nodes.