Table of Contents

Class Edge<TNodeValue, TEdgeLabel>

Namespace
Bonsai.Dag
Assembly
Bonsai.Core.dll

Represents an outgoing labeled edge in a directed graph.

public class Edge<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
Edge<TNodeValue, TEdgeLabel>
Inherited Members

Constructors

Edge(Node<TNodeValue, TEdgeLabel>, TEdgeLabel)

Initializes a new instance of the Edge<TNodeValue, TEdgeLabel> class with the specified target node and label.

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

Parameters

target Node<TNodeValue, TEdgeLabel>

The target node of the edge.

label TEdgeLabel

The label value of the edge.

Properties

Label

Gets the value of the edge label.

public TEdgeLabel Label { get; }

Property Value

TEdgeLabel

Target

Gets the node that is the target of the edge.

public Node<TNodeValue, TEdgeLabel> Target { get; }

Property Value

Node<TNodeValue, TEdgeLabel>

Methods

Equals(object)

Returns a value indicating whether this instance is equal to a specified object.

public override bool Equals(object obj)

Parameters

obj object

An object to compare with this instance.

Returns

bool

true if obj is an instance of Edge<TNodeValue, TEdgeLabel> and its label equals the label value of this instance; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer hash code.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.