|
|
||
|
|
| Graph Utilities Package Symbol | Tutorials »|See Also »|More About » |
| Aggressive | False | whether to make extra effort in finding the optimal graph diameter |
Needs["GraphUtilities`"] The pseudo diameter of the graph of a square is 2:
A plot showing the graph with the two vertices of the pseudo diameter highlighted in red:
Needs["GraphUtilities`"] Here is a matrix representation of the graph of a torus:
The pseudo-diameter of this torus is 7:
This finds the graph geodesic between vertices 1 and 26, highlighting the graph geodesic in red:
|
| © 2008 Wolfram Research, Inc. |