Table of Contents

Class EdgeDescriptor<TEdgeLabel>

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

Represents a serializable descriptor of an edge connecting two nodes in a directed graph.

public class EdgeDescriptor<TEdgeLabel>

Type Parameters

TEdgeLabel

The type of the labels associated with graph edges.

Inheritance
EdgeDescriptor<TEdgeLabel>
Inherited Members

Constructors

EdgeDescriptor()

Initializes a new instance of the EdgeDescriptor<TEdgeLabel> class.

public EdgeDescriptor()

EdgeDescriptor(int, int, TEdgeLabel)

Initializes a new instance of the EdgeDescriptor<TEdgeLabel> class with the specified indices for source and target nodes and a label value.

public EdgeDescriptor(int from, int to, TEdgeLabel label)

Parameters

from int

The zero-based index of the node that is the source of the edge.

to int

The zero-based index of the node that is the target of the edge.

label TEdgeLabel

The value of the edge label.

Properties

From

Gets or sets the zero-based index of the node that is the source of the edge.

public int From { get; set; }

Property Value

int

Label

Gets or sets the value of the edge label.

public TEdgeLabel Label { get; set; }

Property Value

TEdgeLabel

To

Gets or sets the zero-based index of the node that is the target of the edge.

public int To { get; set; }

Property Value

int