Class EdgeDescriptor<TEdgeLabel>
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
intThe zero-based index of the node that is the source of the edge.
to
intThe zero-based index of the node that is the target of the edge.
label
TEdgeLabelThe 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
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; }