Table of Contents

Class Edge

Namespace
Gremlin.Net.Structure
Assembly
Gremlin.Net.dll

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 object

The id of the edge.

outV Vertex

The outgoing/tail vertex of the edge.

label string

The label of the edge.

inV Vertex

The 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

Vertex

OutV

Gets the outgoing/tail vertex of this edge.

public Vertex OutV { get; }

Property Value

Vertex

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()

Returns

string