Mean Distance Calculator

average shortest path length

CalculatorsFreeNo Signup
4.4(525 reviews)
All Tools

Loading tool...

About Mean Distance Calculator

A mean distance calculator computing μ(G) = W(G)/C(n,2) = 2W/(n(n-1)) where W is Wiener index. Average shortest path length. Fundamental network metric. μ(K_n)=1, μ(P_n)=(n+1)/3, μ(C_n)=n/4 (even). Small-world: μ ∝ log(n). Client-side BFS.

Mean Distance Calculator Features

  • μ(G)
  • W/C(n,2)
  • Avg path
  • Small-world
  • Common graphs
Mean distance μ(G) = 2W/(n(n-1)). Average shortest path. μ = 1 for complete graphs. μ = (n+1)/3 for paths. Small-world networks: μ ∝ log(n). The most cited metric in network science.

How to Use

Select graph:

  • μ: Mean distance
  • W: Wiener
  • vs diam: Compare

Small World

μ ∝ log(n): small-world. μ ∝ n: large-world (paths, chains). μ ∝ n^{1/d}: d-dimensional lattices. The scaling of μ with n reveals the network's dimensional structure.

Bounds

1 ≤ μ ≤ (n+1)/3 for trees. 1 ≤ μ ≤ n/2 for general. μ = 1 iff K_n. μ close to 1: dense, well-connected. μ close to n/2: sparse, path-like.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute W (Wiener).
  3. 3μ = 2W/(n(n-1)).
  4. 4Compare with diameter.
  5. 5Check small-world.

Mean Distance Calculator — Frequently Asked Questions

μ vs diameter?+

Diameter = worst case. μ = average case. A graph can have large diameter but small μ (most pairs are close, few are far). μ is more representative of typical performance.

Six degrees of separation?+

In social networks μ ≈ 6. This is the 'six degrees of separation' phenomenon. For Facebook: μ ≈ 4.7. For academic coauthorship: μ ≈ 5. Small-world property!

μ for random graphs?+

Erdős-Rényi G(n,p): μ ≈ log(n)/log(np) when np >> 1. Scale-free: μ ≈ log(n)/log(log(n)). Even smaller! Ultra-small-world networks.

Share this tool: