Diameter

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.

更多信息更多信息

New to Mathematica? Find your learning path »
Have a question? Ask support »