uchicago-dsi / climate-cabinet-campaign-finance-tracker

1 stars 2 forks source link

what is pos? #84

Open trevorspreadbury opened 7 months ago

trevorspreadbury commented 7 months ago
    # TODO: what is pos?

https://github.com/dsi-clinic/2024-winter-climate-cabinet-campaign-finance-tracker/blob/6289156899c02b94711ae953786dde51884520cf/src/utils/network.py#L147

bhavyapan commented 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.