topology_layout#
- popo.plotting.network.topology_layout(topology, root='sourcebus', orientation='vertical')#
Lay out every bus as a tidy tree grown from
root.Depth (breadth-first hop distance from
root) sets the position along the tree’s growth axis. Across it, leaves take consecutive slots in visit order and each parent sits centred over its children, so a subtree never crosses its neighbours’ edges. Good for a radial LV feeder, not a general graph layout: a bus reachable by more than one path (parallel lines, a loop) is placed under whichever parent reaches it first, and buses not connected torootare left out.