Class Vertex
Represents a vertex in DSE graph.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Graph
Assembly: Dse.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 | |
| System.String | label | |
| System.Collections.Generic.IDictionary<System.String, GraphNode> | properties |
Methods
GetProperties()
Gets the properties of this element.
Declaration
public IEnumerable<IVertexProperty> GetProperties()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.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 |
|---|---|---|
| System.String | name | The name of the property |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.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 |
|---|---|---|
| System.String | name | The name of the property |
Returns
| Type | Description |
|---|---|
| IVertexProperty | The property or null. |
Explicit Interface Implementations
IElement.GetProperties()
Declaration
IEnumerable<IProperty> IElement.GetProperties()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IProperty> |
IElement.GetProperty(String)
Declaration
IProperty IElement.GetProperty(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type | Description |
|---|---|
| IProperty |
Implements
System.IEquatable<T>