Method Add
Add(TNodeValue)
Creates and adds a new node with the specified value to the directed graph.
public Node<TNodeValue, TEdgeLabel> Add(TNodeValue value)
Parameters
value
TNodeValueThe value of the node label.
Returns
- Node<TNodeValue, TEdgeLabel>
The created node.
Add(Node<TNodeValue, TEdgeLabel>)
Adds a node and all its successors to the directed graph.
public void Add(Node<TNodeValue, TEdgeLabel> node)
Parameters
node
Node<TNodeValue, TEdgeLabel>The node to be added to the directed graph.