gives the greatest distance between any pair of vertices in the graph g.
uses rules vw to specify the graph g.
Details and Options
- 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".
Examplesopen allclose all
Introduced in 2010
(8.0)| Updated in 2015