graflo.architecture.graph_types.identifiers¶
Graph identifier aliases and edge-key serialization.
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
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.