The Algebraic Path Problem for Graph Metrics
Enrique Fita Sanmartín, Sebastian Damrich, Fred A. Hamprecht
Abstract
Finding paths with optimal properties is a foundational problem in computer science. The notions of shortest paths (minimal sum of edge costs), minimax paths (minimal maximum edge weight), reliability of a path and many others all arise as special cases of the "algebraic path problem" (APP). Indeed, the APP formalizes the relation between different semirings such as min-plus, min-max and the distances they induce. We here clarify, for the first time, the relation between the potential distance and the log-semiring. We also define a new unifying family of algebraic structures that include all above-mentioned path problems as well as the commute cost and others as special or limiting cases. The family comprises not only semirings but also strong bimonoids (that is, semirings without distributivity). We call this new and very general distance the "log-norm distance". Finally, we derive some sufficient conditions which ensure that the APP associated with a semiring defines a metric over an arbitrary graph.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Rethinking the Expressive Power of GNNs via Graph BiconnectivityBohang Zhang, Shengjie Luo, Liwei Wang, Di HeICLR 2023 · 15 citations
- Model Counting and Sampling via Semiring ExtensionsAndreas Goral, Joachim Giesen, Mark Blacher, Christoph Staudt et al.AAAI 2024 · 1 citation
- No Metric to Rule Them All: Toward Principled Evaluations of Graph-Learning DatasetsCorinna Coupette, Jeremy Wayland, Emily Simons, Bastian RieckICML 2025
Related papers
- On Non-Commutative RoutingZhaozhen Wang, Xingang Shi, Haijun Geng, Zitong Jin et al.INFOCOM 2025
- Tree embeddings for hop-constrained network designBernhard Haeupler, D. Ellis Hershkowitz, Goran ZuzicSTOC 2021 · 1 citation
- The Gradient of Algebraic Model CountingJaron Maene, Luc De RaedtAAAI 2025 · 1 citation
- Path and Intersections: Characterization of Quasi-metrics in Directed Okamura-Seymour InstancesYu Chen, Zihan TanSODA 2025
- Parallel Breadth-First Search and Exact Shortest Paths and Stronger Notions for Approximate DistancesVáclav Rozhon, Bernhard Haeupler, Anders Martinsson, Christoph Grunau et al.STOC 2023 · 6 citations
