Python Density And Centrality Network