[go: up one dir, main page]

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

Update and rename Graph.py to Optimized_Graph.py #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thisisvk45
Copy link

summary of the changes:

Simplified Pairing: I combined the steps to group by URL and generate organization pairs into one line, making the code cleaner and faster.

Easier Weight Calculation: I used a built-in function to directly calculate how many times each organization pair appears, getting rid of extra loops.

Cleaner Graph Building: I created the graph directly from a simplified DataFrame, avoiding duplicate edges and unnecessary steps.

summary of the changes:

Simplified Pairing: I combined the steps to group by URL and generate organization pairs into one line, making the code cleaner and faster.

Easier Weight Calculation: I used a built-in function to directly calculate how many times each organization pair appears, getting rid of extra loops.

Cleaner Graph Building: I created the graph directly from a simplified DataFrame, avoiding duplicate edges and unnecessary steps.
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

Successfully merging this pull request may close these issues.

1 participant