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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.