Method Sinks
Sinks<TNodeValue, TEdgeLabel>(DirectedGraph<TNodeValue, TEdgeLabel>)
Returns the sequence of all the nodes in the directed graph with no outgoing edges.
public static IEnumerable<Node<TNodeValue, TEdgeLabel>> Sinks<TNodeValue, TEdgeLabel>(this DirectedGraph<TNodeValue, TEdgeLabel> source)
Parameters
sourceDirectedGraph<TNodeValue, TEdgeLabel>The directed graph to search for sinks.
Returns
- IEnumerable<Node<TNodeValue, TEdgeLabel>>
A sequence containing all the nodes in the directed graph with no outgoing edges.
Type Parameters
TNodeValueThe type of the labels associated with graph nodes.
TEdgeLabelThe type of the labels associated with graph edges.