Table of Contents

Method Sinks

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

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

source DirectedGraph<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

TNodeValue

The type of the labels associated with graph nodes.

TEdgeLabel

The type of the labels associated with graph edges.