English

Enumerating all geodesics

Combinatorics 2025-09-30 v3 Discrete Mathematics

Abstract

By "geodesic" we mean any sequence of vertices (v1,v2,...,vk)(v_1,v_2,...,v_k) of a graph GG that constitute a shortest path from v1v_1 to vkv_k. We propose a novel, natural algorithm to enumerate all geodesics of GG, and pit it (using Mathematica) against the standard procedure for the task. The distance matrix D(G)D(G) plays a crucial role in this. In fact, part of our article is devoted to survey its many uses in related tasks.

Keywords

Cite

@article{arxiv.2409.16955,
  title  = {Enumerating all geodesics},
  author = {Marcel Wild},
  journal= {arXiv preprint arXiv:2409.16955},
  year   = {2025}
}

Comments

12 pages

R2 v1 2026-06-28T18:56:40.087Z