Method Successors
Successors<TNodeValue, TEdgeLabel>(DirectedGraph<TNodeValue, TEdgeLabel>, Node<TNodeValue, TEdgeLabel>)
Returns the sequence of successors to the specified node.
public static IEnumerable<Node<TNodeValue, TEdgeLabel>> Successors<TNodeValue, TEdgeLabel>(this DirectedGraph<TNodeValue, TEdgeLabel> source, Node<TNodeValue, TEdgeLabel> node)
Parameters
sourceDirectedGraph<TNodeValue, TEdgeLabel>The source directed graph to search for successors.
nodeNode<TNodeValue, TEdgeLabel>The node for which to obtain the sequence of successors.
Returns
- IEnumerable<Node<TNodeValue, TEdgeLabel>>
A sequence containing all the successors to the specified node.
Type Parameters
TNodeValueThe type of the labels associated with graph nodes.
TEdgeLabelThe type of the labels associated with graph edges.