Table of Contents

Method Successors

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

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

source DirectedGraph<TNodeValue, TEdgeLabel>

The source directed graph to search for successors.

node Node<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

TNodeValue

The type of the labels associated with graph nodes.

TEdgeLabel

The type of the labels associated with graph edges.