Class Edge
Represents an edge between to vertices.
public class Edge : Element, IEquatable<Element>
- Inheritance
-
Edge
- Implements
- Inherited Members
Constructors
Edge(object?, Vertex, string, Vertex, dynamic[]?)
Initializes a new instance of the Edge class.
public Edge(object? id, Vertex outV, string label, Vertex inV, dynamic[]? properties = null)
Parameters
id
objectThe id of the edge.
outV
VertexThe outgoing/tail vertex of the edge.
label
stringThe label of the edge.
inV
VertexThe incoming/head vertex of the edge.
properties
dynamic[]Optional properties of the edge.
Properties
InV
Gets the incoming/head vertex of this edge.
public Vertex InV { get; }
Property Value
OutV
Gets the outgoing/tail vertex of this edge.
public Vertex OutV { get; }
Property Value
Methods
Property(string)
Get property by key
public Property? Property(string key)
Parameters
key
string
Returns
- Property
property or null when not found
ToString()
public override string ToString()