This method calculates the diameter of a given graph.
a graph as a graphNEL object.
the distance matrix of the graph. If the parameter is empty the distance matrix will be calculated within the function.
This method returns the diameter of a given graph.
F. Harary, Graph Theory, Addison-Wesley series in mathematics, Perseus Books, 1994.
1 2 3 4 5