Skip to content

Node

Node is an immutable property graph node record returned by lookup methods.

Reference

tonggraph.Node

Immutable node record returned by graph lookup methods.

Nodes are addressed by dense integer IDs inside TongGraph. The optional external ID lets applications keep a stable string identifier at the API boundary.

id property

id: int

Internal integer node ID.

external_id property

external_id: str

Application-facing node identifier.

labels property

labels: list[str]

Labels attached to the node.

properties property

properties: dict[str, PropertyValue]

Node properties as Python scalar values.