Node

Represents a node from a labeled property graph.

Consists of a unique identifier (withing the scope of its origin graph), a list of labels and a map of properties. A node owns its labels and properties.

Maximum possible number of labels allowed by Bolt protocol is uint.max.

Constructors

this
this(Node other)

Create a shallow copy of the given node.

this
this(Value value)

Create a node from a Value.

this
this(mg_node* p)

Create a Node from a copy of the given mg_node.

Members

Functions

id
auto id()

Returns the ID of this node.

labels
auto labels()

Returns the labels belonging to this node.

opEquals
bool opEquals(Node other)

Comparison operator.

properties
auto properties()

Returns the property map belonging to this node.

ptr
auto ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()

Return the hash code for this node.

toString
string toString()

Return a printable string representation of this node.

Structs

Labels
struct Labels

View of the node's labels.

Meta