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

Graph metrics #106

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open

Graph metrics #106

wants to merge 21 commits into from

Conversation

joy-kitson
Copy link
Collaborator

No description provided.

ysakharkar and others added 17 commits January 14, 2024 16:24
Computes average connectivity using minimum edge cuts from a weighted/unweighted sample size of vertex pairs
Added minimal comments documenting the code
Uses a sample to approximate a graph's average eccentricity and the diameter of the graph (maximum eccentricity in the sample)
Add flush=True to print statements and add intermediate print statements to show progress
Add flush=True to print statements and add intermediate print statements to track progress
Computes the average cluster coefficient of a graph using squares
Shuffle vertices before processing
Converts a visits.csv file to a sparse adjacency matrix form (compressed sparse row)
Utilized pandas and scipy.sparse optimizations to heavily optimize this conversion
Add printing of metrics to the end (number of non zeroes, average number of non zeroes per row, 1-norm, and frobenius norm)
Takes in original population directory, proportion of visits to change, and output population directory. 

Randomly replaces that proportion of visits' (without replacement) with locations that are randomly picked (with replacement). Then, the new population directory is created with the new visits.csv file and soft links to other population files in the old directory.
@joy-kitson joy-kitson added the WIP label Mar 4, 2024
Script that calculate and print all of the relevant sparse adjacency matrix metrics as well as location heuristics for a given population directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants