Table of Contents

Class Node<TNodeValue, TEdgeLabel>

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

Represents a labeled node in a directed graph.

public class Node<TNodeValue, TEdgeLabel>

Type Parameters

TNodeValue

The type of the labels associated with graph nodes.

TEdgeLabel

The type of the labels associated with graph edges.

Inheritance
Node<TNodeValue, TEdgeLabel>
Inherited Members
Extension Methods

Constructors

Node(TNodeValue)

Initializes a new instance of the Node<TNodeValue, TEdgeLabel> class with the specified value.

public Node(TNodeValue value)

Parameters

value TNodeValue

The value of the node label.

Properties

Successors

Gets the collection of successor edges leaving this node.

public EdgeCollection<TNodeValue, TEdgeLabel> Successors { get; }

Property Value

EdgeCollection<TNodeValue, TEdgeLabel>

Value

Gets the value of the node label.

public TNodeValue Value { get; }

Property Value

TNodeValue

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.