nocad.plotting.default_layout#

nocad.plotting.default_layout(adj, random_state=0, scale=1.0, method='auto')[source]#

Node positions for a network drawing.

Parameters:
adjnetwork
random_stateint

Seed of the spring layout.

scalefloat

Half-width of the bounding box of the result.

methodstr, default=”auto”

"auto" (Kamada–Kawai up to 80 nodes, spring above, disconnected parts side by side); a NetworkX layout ("kamada_kawai", "spring", "spectral", "circular", "shell"); "multipartite" (NetworkX multipartite layout with the levels of the SCC hierarchy as layers); "hierarchy" and "observation_hierarchy" (nocad.viz.hierarchy_layout()). "default" is an alias of "auto".

Returns:
posndarray of shape (N, 2); as_pos_dict() turns it into a NetworkX pos.

Examples using nocad.plotting.default_layout#

Control and observation depth maps

Control and observation depth maps

Node roles across all maximum matchings

Node roles across all maximum matchings

Robustness of input and output configurations

Robustness of input and output configurations

Similarity of drivers, sensors and edges

Similarity of drivers, sensors and edges

Set covering and centrality-based placement

Set covering and centrality-based placement

Heat exchanger networks

Heat exchanger networks