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