Cleanup
Move networkx load process to main block
Remove euclidean distance function
Remove unused import
Organize imports
Is this a mistake?