+Our \emph{Weighted Minimum‐Cycle} (\textbf{WMC}) algorithm changes this picture fundamentally. Because WMC minimises \emph{composite distance} rather than plain SSSP trees, all information required to answer subsequent cycle queries can be collected in a single, graph–wide preprocessing pass. In other words, the expensive part is pushed to a \emph{pre-processing stage} that can be run once, cached, and even distributed across multiple workers or machines. Once the WMC structure is built, each iteration of the Loop Modulus algorithm merely consults the pre-computed data to retrieve violating cycles – typically \(100\!\times\) faster than re-running Dijkstra.
0 commit comments