graflo.architecture.graph_types.identifiers¶
Graph identifier aliases and edge-key serialization.
Attributes¶
EdgeId = tuple[str, str, str | None]
module-attribute
¶
EdgePhysicalKey = tuple[str, str, str | None, str | None]
module-attribute
¶
GraphEntity = str | EdgeId
module-attribute
¶
VertexName = str
module-attribute
¶
Functions:¶
deserialize_edge_key(key)
¶
Deserialize a JSON-array edge key back to an edge id tuple.
Source code in graflo/architecture/graph_types/identifiers.py
deserialize_entity_key(key)
¶
serialize_edge_key(edge_id)
¶
Serialize an edge id tuple to a JSON-safe string key.
Uses a JSON array [source, target, relation] so vertex or relation names
may contain | or other special characters without ambiguity.