Method PredecessorEdges
PredecessorEdges<TNodeValue, TEdgeLabel>(DirectedGraph<TNodeValue, TEdgeLabel>, Node<TNodeValue, TEdgeLabel>)
Returns the sequence of predecessor edges to the specified node.
public static IEnumerable<Tuple<Node<TNodeValue, TEdgeLabel>, Edge<TNodeValue, TEdgeLabel>, int>> PredecessorEdges<TNodeValue, TEdgeLabel>(this DirectedGraph<TNodeValue, TEdgeLabel> source, Node<TNodeValue, TEdgeLabel> node)
Parameters
sourceDirectedGraph<TNodeValue, TEdgeLabel>The source directed graph to search for predecessors.
nodeNode<TNodeValue, TEdgeLabel>The node for which to obtain the sequence of predecessors.
Returns
- IEnumerable<Tuple<Node<TNodeValue, TEdgeLabel>, Edge<TNodeValue, TEdgeLabel>, int>>
A sequence of triples containing the predecessor node, the edge linking the predecessor to the specified node and the edge index.
Type Parameters
TNodeValueThe type of the labels associated with graph nodes.
TEdgeLabelThe type of the labels associated with graph edges.