Class Vertex
Represents a vertex in DSE graph.
Inherited Members
Namespace: Cassandra.DataStax.Graph
Assembly: Cassandra.dll
Syntax
public class Vertex : Element, IVertex, IElement, IEquatable<IElement>
Constructors
Vertex(GraphNode, string, IDictionary<string, GraphNode>)
Creates a new Vertex instance.
Declaration
public Vertex(GraphNode id, string label, IDictionary<string, GraphNode> properties)
Parameters
Type | Name | Description |
---|---|---|
GraphNode | id | |
string | label | |
IDictionary<string, GraphNode> | properties |
Methods
GetProperties()
Gets the properties of this element.
Declaration
public IEnumerable<IVertexProperty> GetProperties()
Returns
Type | Description |
---|---|
IEnumerable<IVertexProperty> |
GetProperties(string)
Gets the properties of this element that has the given name.
Declaration
public IEnumerable<IVertexProperty> GetProperties(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the property |
Returns
Type | Description |
---|---|
IEnumerable<IVertexProperty> |
GetProperty(string)
Gets the first property of this element that has the given name, or null if the property does not exist.
If more than one property of this element has the given name, it will return one of them (unspecified order).
Declaration
public IVertexProperty GetProperty(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the property |
Returns
Type | Description |
---|---|
IVertexProperty | The property or null. |