Open trevorspreadbury opened 7 months ago
This variable seems to be created for position calculation.
The nx.spring_layout
command takes G
as an argument -- a NetworkX graph or list of nodes and a position will be assigned to every node in G
. It calculates node positions and positions nodes using Fruchterman-Reingold force-directed algorithm.
https://github.com/dsi-clinic/2024-winter-climate-cabinet-campaign-finance-tracker/blob/6289156899c02b94711ae953786dde51884520cf/src/utils/network.py#L147