pub fn compute_relative(
nodes: &[(u32, (f32, f32))],
edges: &[(u32, u32)],
gap: f32,
) -> RelativeLayoutExpand description
Lay out sized nodes and route their edges with layout-rs.
Regions are opaque rectangles; callers size their contents bottom-up. Node ids must be unique, sizes and gap finite, and all endpoints present. Compute once per graph edit, rather than per frame.
ยงPanics
Panics if an edge refers to an absent node.