Class Element
Base class for vertices and edges
Assembly: Cassandra.dll
Syntax
public abstract class Element : IElement, IEquatable<IElement>
Constructors
Element(GraphNode, string, IDictionary<string, GraphNode>)
Creates a new instance of a Graph Element.
Declaration
protected Element(GraphNode id, string label, IDictionary<string, GraphNode> properties)
Parameters
Properties
Id
Declaration
public GraphNode Id { get; }
Property Value
Label
Gets the label of the element
Declaration
public string Label { get; }
Property Value
Properties
Declaration
public IDictionary<string, GraphNode> Properties { get; }
Property Value
Methods
Equals(IElement)
Declaration
public bool Equals(IElement other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetProperties()
Gets all properties of an element.
Declaration
public IEnumerable<IProperty> GetProperties()
Returns
GetProperty(string)
Declaration
public IProperty GetProperty(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Implements