1. Uniform Sampling of Negative Edge Weights in Shortest Path Networks
- Author
-
Geis, Lukas, Allendorf, Daniel, Bläsius, Thomas, Leonhardt, Alexander, Meyer, Ulrich, Penschuck, Manuel, and Tran, Hung
- Subjects
Computer Science - Data Structures and Algorithms - Abstract
We consider a maximum entropy edge weight model for shortest path networks that allows for negative weights. Given a graph $G$ and possible weights $\mathcal{W}$ typically consisting of positive and negative values, the model selects edge weights $w \in \mathcal{W}^m$ uniformly at random from all weights that do not introduce a negative cycle. We propose an MCMC process and show that (i) it converges to the required distribution and (ii) that the mixing time on the cycle graph is polynomial. We then engineer an implementation of the process using a dynamic version of Johnson's algorithm in connection with a bidirectional Dijkstra search. We empirically study the performance characteristics of an implementation of the novel sampling algorithm as well as the output produced by the model.
- Published
- 2024