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
sourceDirectedGraph<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
TNodeValueThe type of the labels associated with graph nodes.
TEdgeLabelThe type of the labels associated with graph edges.