gives the greatest distance between any pair of vertices in the graph g.
uses rules vw to specify the graph g.
- The following options can be given:
EdgeWeight Automatic weight for each edge Method Automatic method to use
- With the default setting EdgeWeight->Automatic, the edge weight of an edge is taken to be the EdgeWeight of the graph g if available; otherwise, it is 1.
- Possible Method settings include "Dijkstra", "FloydWarshall", "Johnson", and "PseudoDiameter".
Introduced in 2010
(8.0)| Updated in 2015