nocad.viz.hierarchy_layout#
- nocad.viz.hierarchy_layout(adj, direction='control', level_gap=1.25, node_gap=0.7, n_sweeps=12)[source]#
Layered layout of the condensation of a network.
- Parameters:
- adj
network - direction{“control”, “observation”}
"control": source components on top (level 0), edges point downward;"observation": sink components on the bottom level.- level_gap, node_gap
float Vertical distance of levels and horizontal distance of trivial components.
- n_sweeps
int Barycenter sweeps for the order of the components on a level.
- adj
- Returns:
- layout
Bunchwithpos(N, 2),level(percomponent),center(p, 2), radius(p,),condensationandlevels(list of component lists).
- layout
Examples using nocad.viz.hierarchy_layout#
The SCC hierarchy: where inputs and outputs must go
The SCC hierarchy: where inputs and outputs must go