Python Graph Library Networkx Diameter Vs Dimension