Relationship

Represents a relationship from a labeled property graph.

Consists of a unique identifier (within the scope of its origin graph), identifiers for the start and end nodes of that relationship, a type and a map of properties. A relationship owns its type string and property map.

Constructors

this
this(Relationship other)

Create a copy of other relationship.

this
this(Value value)

Create a relationship from a Value.

this
this(mg_relationship* ptr)

Create a Relationship using the given mg_relationship.

this
this(mg_relationship* const_ptr)

Create a Relationship from a copy of the given mg_relationship.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

endId
const(long) endId()

Returns the relationship end id.

id
const(long) id()

Returns the relationship id.

opEquals
bool opEquals(Relationship other)

Compares this relationship with other. Return: true if same, false otherwise.

properties
const(Map) properties()

Returns the relationship properties.

ptr
const(mg_relationship*) ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
startId
const(long) startId()

Returns the relationship start id.

toString
const(string) toString()

Return a printable string representation of this relationship.

type
const(string) type()

Returns the relationship type.

Meta