Table of Contents

Method IndexOf

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

IndexOf(Node<TNodeValue, TEdgeLabel>)

Searches for the specified node and returns its zero-based index within the collection.

public int IndexOf(Node<TNodeValue, TEdgeLabel> node)

Parameters

node Node<TNodeValue, TEdgeLabel>

The node to locate in the collection.

Returns

int

The zero-based index of node in the collection, if found; otherwise, -1.