What does network diameter mean if it is called the longest shortest path?
Network diameter is defined as the length of the longest shortest path in the network. Equivalently, it measures the separation between the pair of nodes that are farthest apart when distance is taken along shortest paths.
Conditions
- The network is connected enough that shortest-path distances between the compared node pairs are defined.
- Distance is measured by shortest paths.
Reasoning, step by step
- Identify shortest-path distances between node pairs in the network.
- Select the largest among those shortest-path lengths.
- Read off the value from the highlighted path in the displayed example.
Example
In the example network, the diameter is 4, which is the length of the longest shortest path shown.
Common misconceptions
- Confusing diameter with an arbitrary long route; diameter is not any long path, but the maximum among shortest-path distances between node pairs.
Watch the explanation
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.