Combinatorica`
Combinatorica`
Diameter
As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. »
Diameter[g]
gives the diameter of graph g: the maximum length, among all pairs of vertices in g, of a shortest path between each pair.
Details and Options
- Diameter functionality is now available in the built-in Wolfram Language function GraphDiameter.
- To use Diameter, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Examples
Wolfram Research (2012), Diameter, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/Diameter.html.
Text
Wolfram Research (2012), Diameter, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/Diameter.html.
CMS
Wolfram Language. 2012. "Diameter." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/Diameter.html.
APA
Wolfram Language. (2012). Diameter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/Diameter.html