Python Network Graph Based On Gravity