Return the metric closure of a graph.
The metric closure of a graph G is the complete graph in which each edge is weighted by the shortest path distance between the nodes in G .
G (NetworkX graph)
Metric closure of the graph
- Return type