Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is pos? #84

Open
trevorspreadbury opened this issue Apr 2, 2024 · 1 comment
Open

what is pos? #84

trevorspreadbury opened this issue Apr 2, 2024 · 1 comment
Assignees

Comments

@trevorspreadbury
Copy link
Contributor

    # TODO: what is pos?

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

@bhavyapan bhavyapan self-assigned this Apr 4, 2024
@bhavyapan
Copy link
Collaborator

bhavyapan commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants