Class Element
Base class for vertices and edges
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 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
Type | Name | Description |
---|---|---|
GraphNode | id | |
System.String | label | |
System.Collections.Generic.IDictionary<System.String, GraphNode> | properties |
Properties
Id
Gets the identifier
Declaration
public GraphNode Id { get; }
Property Value
Type | Description |
---|---|
GraphNode |
Label
Gets the label of the element
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Properties
Gets the properties
Declaration
public IDictionary<string, GraphNode> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, GraphNode> |
Methods
Equals(IElement)
Declaration
public bool Equals(IElement other)
Parameters
Type | Name | Description |
---|---|---|
IElement | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
GetProperties()
Gets all properties of an element.
Declaration
public IEnumerable<IProperty> GetProperties()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IProperty> |
GetProperty(String)
Gets a property by name.
Declaration
public IProperty GetProperty(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
IProperty |
Explicit Interface Implementations
IElement.Id
Gets the identifier
Declaration
IGraphNode IElement.Id { get; }
Returns
Type | Description |
---|---|
IGraphNode |
Implements
System.IEquatable<T>