Skip to main content

Module network

Module network 

Source
Expand description

StatNetwork: node-link layouts for network graphs.

Input: an edge list (from, to, optional weight, 1 when unmapped; repeated pairs summed, self-loops dropped). Nodes are laid out by a seeded Fruchterman–Reingold force simulation (deterministic for a seed), on a circle, or on a grid.

Output: one row per node (part = "node", x/y, node, degree = summed incident weight, component = connected-component number) then one per edge (part = "edge", x/y → xend/yend, from, to, value), plus constant xmin/xmax/ymin/ymax framing a square.

Structs§

StatNetwork
Network layout stat behind GeomNetwork.

Enums§

NetworkLayout
Node placement.