Distances along a weighted graph, as a metric space for the Vietoris-Rips and Cech machinery: the geodesic distance of a graph that records which points are near each other (a nearest-neighbour graph on a manifold, a network, a mesh).
The shortest-path distance between every two vertices of the undirected graph on 0 until n with the given (a, b, weight) edges (weights >= 0; the lightest of repeated edges counts). Vertices in different components are at distance Infinity, which the Vietoris-Rips complex reads as "never joined". The distances are computed by Dijkstra's algorithm from every vertex and held in an n x n table.
The shortest-path distance between every two vertices of the undirected graph on 0 until n with the given (a, b, weight) edges (weights >= 0; the lightest of repeated edges counts). Vertices in different components are at distance Infinity, which the Vietoris-Rips complex reads as "never joined". The distances are computed by Dijkstra's algorithm from every vertex and held in an n x n table.
The geodesic distances of the k-nearest-neighbour graph of points, an edge weighing the Euclidean distance of its ends (the graph of Isomap). Two points are joined when either is among the other's k nearest. Points the graph does not connect are at distance Infinity; raise k until the graph is connected.
The geodesic distances of the k-nearest-neighbour graph of points, an edge weighing the Euclidean distance of its ends (the graph of Isomap). Two points are joined when either is among the other's k nearest. Points the graph does not connect are at distance Infinity; raise k until the graph is connected.