grafeo.Edge¶
Represents a graph edge.
Properties¶
| Property | Type | Description |
|---|---|---|
id | int | Internal edge ID |
edge_type | str | Edge type |
source_id | int | Source node ID |
target_id | int | Target node ID |
Methods¶
get()¶
Get a property value by key. Returns None if the property does not exist.
properties()¶
Get all properties as a dictionary.
Operators¶
edge["key"]¶
Access a property by key. Raises KeyError if the property does not exist.
"key" in edge¶
Check whether the edge has a property with the given key.