Table of Contents

Class Edge

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

Provides static methods for creating edge objects.

public static class Edge
Inheritance
Edge
Inherited Members

Methods

Create<TNodeValue, TEdgeLabel>(Node<TNodeValue, TEdgeLabel>, TEdgeLabel)

Creates a new directed graph labeled edge.

public static Edge<TNodeValue, TEdgeLabel> Create<TNodeValue, TEdgeLabel>(Node<TNodeValue, TEdgeLabel> target, TEdgeLabel label)

Parameters

target Node<TNodeValue, TEdgeLabel>

The node instance that is the target of the edge.

label TEdgeLabel

The value of the edge label.

Returns

Edge<TNodeValue, TEdgeLabel>

A labeled edge targeting 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.