A metric space is a pair \((X, d)\) where \(X\) is a set and \(d: X \times X \rightarrow \mathbb{R}\) satisfying:
Let \(G=(V, E)\) be a graph with \(n\) vertices and positive edge weights. \((V, d_G)\) is a metric space where
\[D_g(x, y) = \text{sum of edge weights along the shortest path}\]