Table of Contents

Method RemoveWhere

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

RemoveWhere(Predicate<Node<TNodeValue, TEdgeLabel>>)

Removes all nodes that match the conditions defined by the specified predicate from the directed graph.

public int RemoveWhere(Predicate<Node<TNodeValue, TEdgeLabel>> match)

Parameters

match Predicate<Node<TNodeValue, TEdgeLabel>>

The Predicate<T> delegate that defines the conditions of the nodes to remove.

Returns

int

The number of nodes that were removed from the directed graph.

Exceptions

ArgumentNullException