Skip to content

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

Open
thisisvk45 wants to merge 1 commit intohannahawalsh:mainfrom
thisisvk45:patch-1
Open

Update and rename Graph.py to Optimized_Graph.py#6
thisisvk45 wants to merge 1 commit intohannahawalsh:mainfrom
thisisvk45:patch-1

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