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