graflo.architecture.evolution.merge_core¶
Pure merge helpers for logical vertices and edges.
edge_config_from_edges(edges)
¶
merge_edge_pair(a, b)
¶
Merge two edges with the same :attr:~graflo.architecture.schema.edge.Edge.edge_id.
Source code in graflo/architecture/evolution/merge_core.py
merge_field_pair(a, b)
¶
Merge two fields with the same name; fail on incompatible types.
Source code in graflo/architecture/evolution/merge_core.py
merge_vertex_models(vertices, into_name)
¶
Union-merge vertex definitions into a single :class:Vertex.
Source code in graflo/architecture/evolution/merge_core.py
redirect_and_merge_edges(edges, mapping)
¶
Apply vertex mapping to endpoints, then merge duplicate edge identities.
Source code in graflo/architecture/evolution/merge_core.py
remap_relation_and_merge_edges(edges, relation_map)
¶
Remap edge relation names and merge duplicate edge identities.