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 copy of the given node.

this
this(Value value)

Create a node from a Value.

this
this(mg_node* p)

Create a Node using the given mg_node.

this
this(mg_node* p)

Create a Node from a copy of the given mg_node.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

id
long 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
const(mg_node*) ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
const(string) toString()

Return a printable string representation of this node.

Structs

Labels
struct Labels

View of the node's labels.

Meta