Class Vertex
Represents a vertex.
Implements
Inherited Members
Namespace: Gremlin.Net.Structure
Assembly: Gremlin.Net.dll
Syntax
public class Vertex : Element, IEquatable<Element>
Constructors
Vertex(object?, string, dynamic[]?)
Initializes a new instance of the Vertex class.
Declaration
public Vertex(object? id, string label = "vertex", dynamic[]? properties = null)
Parameters
Type | Name | Description |
---|---|---|
object | id | The id of the vertex. |
string | label | The label of the vertex. |
dynamic[] | properties | Optional properties of the vertex. |
Fields
DefaultLabel
The default label to use for a vertex.
Declaration
public const string DefaultLabel = "vertex"
Field Value
Type | Description |
---|---|
string |
Methods
Property(string)
Get property by key
Declaration
public VertexProperty? Property(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key |
Returns
Type | Description |
---|---|
VertexProperty | property or null when not found |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |