ESG_AI icon indicating copy to clipboard operation
ESG_AI copied to clipboard

Update and rename Graph.py to Optimized_Graph.py

Open thisisvk45 opened this issue 6 months ago • 0 comments

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.

thisisvk45 avatar Aug 16 '24 20:08 thisisvk45