Click or drag to resize

GraphNode Class

Represents an item of a graph query result, it can be a vertex, an edge, a path or an scalar value.
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    Dse.GraphGraphNode

Namespace:  Dse.Graph
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class GraphNode : DynamicObject, IEquatable<GraphNode>, 
	IGraphNode, IEquatable<IGraphNode>

The GraphNode type exposes the following members.

Constructors
  NameDescription
Public methodGraphNode
Creates a new instance of GraphNode.
Top
Properties
  NameDescription
Public propertyIsArray
Returns true if the underlying value is an array.
Public propertyIsObjectTree
Returns true if the underlying value is an object tree.
Public propertyIsScalar
Returns true if the underlying value is a scalar value (string, double, boolean, ...).
Top
Methods
  NameDescription
Public methodEquals(Object)
Returns true if the value represented by this instance is the same.
(Overrides ObjectEquals(Object).)
Public methodEquals(GraphNode)
Returns true if the value represented by this instance is the same.
Public methodEquals(IGraphNode)
Public methodGetT
Gets the typed value of a property of the result.
Public methodGetHashCode
Gets the hash code for this instance, based on its value.
(Overrides ObjectGetHashCode.)
Public methodGetProperties
Gets the a dictionary of properties of this node.
Public methodGetRaw
Gets the raw data represented by this instance.

Raw internal representation might be different depending on the graph serialization format and it is subject to change without any prior notice.

Public methodHasProperty
Returns true if the property is defined in this instance.
Public methodTo(Type)
Returns the representation of the GraphNode as an instance of the type provided.
Public methodToT
Returns the representation of the GraphNode as an instance of type T.
Public methodToArray
Converts the instance into an array when the internal representation is a json array.
Public methodToBoolean
Returns the representation of the result as a boolean.
Public methodToDouble
Returns the representation of the result as a double.
Public methodToEdge
Returns an edge representation of the current instance.

This method is maintained for backward compatibity. It's recommended that you use ToT instead, providing IEdge as type parameter

Public methodToIArray
Converts the instance into an array when the internal representation is a json array.
Public methodToInt32
Returns the representation of the result as an int.
Public methodToPath
Returns a Path representation of the current instance.

This method is maintained for backward compatibity. It's recommended that you use ToT instead, providing IPath as type parameter.

Public methodToString
Returns the json representation of the result.
(Overrides ObjectToString.)
Public methodToVertex
Returns a vertex representation of the current instance.

This method is maintained for backward compatibity. It's recommended that you use ToT instead, providing IVertex as type parameter.

Public methodTryConvert (Overrides DynamicObjectTryConvert(ConvertBinder, Object).)
Public methodTryGetMember
Provides the implementation for operations that get member values.
(Overrides DynamicObjectTryGetMember(GetMemberBinder, Object).)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns true if the value represented by the instances are the same.
Public operatorStatic member(GraphNode to Vertex)
Converts this instance to a Vertex instance.
Public operatorStatic member(GraphNode to Edge)
Converts this instance to an Edge instance.
Public operatorStatic member(GraphNode to Path)
Converts this instance to a Path instance.
Public operatorStatic member(GraphNode to String)
Converts this instance to a string representation.
Public operatorStatic member(GraphNode to Int16)
Converts this instance to a short representation.
Public operatorStatic member(GraphNode to Int32)
Converts this instance to an int representation.
Public operatorStatic member(GraphNode to Int64)
Converts this instance to a long representation.
Public operatorStatic member(GraphNode to Single)
Converts this instance to a float representation.
Public operatorStatic member(GraphNode to Double)
Converts this instance to a long representation.
Public operatorStatic member(GraphNode to Boolean)
Converts this instance to a boolean representation.
Public operatorStatic memberInequality
Compares the values for inequality.
Top
See Also