Available on crate feature
layout only.Expand description
Ordering providers for babylon’s topology render lane (design canon S9):
surfaces consume orderings, never force layouts. paoh_ordering mirrors
src/babylon/projection/topology/paoh.py’s SHAPE (nodes, sorted edges) —
with one declared deviation: node order here is insertion order (III.7
determinism via node_ids()), not paoh.py’s lexicographic sorted(set);
callers wanting the lexicographic view sort the returned vec. Edge
sort-by-attr-with-missing-last matches paoh.py exactly. levi_ego_tree mirrors
levi.py, modeled on this crate’s own bipartite (agent/hyperedge)
representation. Both are re-expressions of existing structure — no new
mathematics.
Structs§
- Levi
Node - A node in the Levi ego-tree: an agent or a hyperedge, with children in membership insertion order.
Enums§
Functions§
- levi_
ego_ tree - Build a breadth-limited bipartite ego-tree rooted at
root(an agent id).depthcounts hyperedge expansions: atdepth == 0the root is returned with no children. Each agent/hyperedge is visited at most once (aHashSet<String>guard per kind — Power-of-10 rule 2: the walk is bounded by the hypergraph’s finite node/edge count, so it always terminates). ReturnsNoneifrootdoes not exist. - paoh_
ordering - PAOH ordering (parallel aggregated ordered hypergraph): nodes in insertion
order; edges in insertion order unless
sort_attrnames a numeric edge attribute, in which case edges are stable-sorted ascending by that attr’sas_f64()value, with missing/non-numeric attrs sorted LAST (ties by insertion order) — matches babylon’spaoh.pyNone-last rule.