Skip to content

Edge

Edge is an immutable directed edge record with a source, target, type, and scalar properties.

Reference

tonggraph.Edge

Immutable directed edge record returned by graph lookup methods.

id property

id: int

Internal integer edge ID.

source property

source: int

Source node ID.

target property

target: int

Target node ID.

edge_type property

edge_type: str

Application-defined edge type.

properties property

properties: dict[str, PropertyValue]

Edge properties as Python scalar values.