Structural sparsity, admissibility, computing short path packings
Algorithms ·Two-sentence summary: I describe a -time search-tree algorithm for determining whether there is a packing of paths of length at most in a given graph with vertices. I’ll explain how this problem is motivated by research into the structural sparsity of graph classes.
There have recently been some attempts at testing whether real-world graph classes are structurally sparse [1, 2, 3]. Structural sparsity is a way of capturing sparsity in a way that is theoretically robust and algorithmically useful. One way to phrase structural sparsity is roughly that we can find a vertex ordering, such that each vertex connects only to few vertices within a small distance before in the ordering. Computing such orderings helps us check how some parts from the theory of structural sparsity may eventually apply to practice and it could directly be useful for example for counting graph motifs (small subgraphs) [4]. One indication that this is a robust field of study is that computing similar orderings is also being noticed from other directions [5].
A related new approach towards testing structural sparsity is to compute the so-called admissibility of a graph [2, 3]. The advantage compared to previous ones is that it is much easier to formulate and, as we will see below, seems to be easier to work with.
Fix some integer , which in the context of sparsity determines the degree of locality with which we are looking at our graph (or graph class). Let be an ordering of the vertices of a graph . The -admissibility of this ordering is the maximum, taken over all vertices , of the largest number of vertex-disjoint paths from to vertices earlier in the ordering. Now the -admissibility of a graph is the smallest admissibility of a vertex ordering of .
Computing the -admissibility of a graph reduces to greedily iteratively placing at the beginning of a partial ordering a vertex with the smallest number of internally vertex-disjoint paths of length at most to vertices that have not yet been placed. If this was not the case, that is, a greedily placed vertex does not satisfy this condition, then we can look at an extension of with smallest admissibility, move backwards to where we would have placed it in our greedy strategy. The admissibility has to increase. But all the vertices after (after moving) have the same number of paths to before them. A vertex before (after moving) can get a new path to before only via . But then this path was already present before moving . This is a contradiction to our assumption that the admissibility increased by moving and so indeed our greedy strategy works.
So to compute the admissibility, we iteratively need to compute maximum vertex-disjoint packings of paths from some vertex to some vertex set . By putting and introducing an imaginary target vertex that is adjacent to all vertices in , this problem in turn reduces to the following:
Given a graph , two vertices , two integers ; are there internally vertex-disjoint - paths in , each of length at most~?
In the remainder of the post I give an algorithm that solves this problem efficiently for small and . In fact, the algorithm solves the following more general problem. Given are a graph , an integer , and for each a triple of two vertices and an integer~. The question is whether there are paths in such that for each , path starts in , ends in~, and has length at most and such that each pair of paths , are disjoint except for their endpoints (that is, )?
We refer to a set of paths as above as a solution. The single-pair problem SPP reduces to MTSPP by setting, for each , the triple .
Theorem. MTSPP can be decided in time, where and .
I prove this using a search tree. Each node corresponds to one MTSPP instance. At a node , the algorithm first tries a greedy construction; if that fails, it branches into a bounded number of smaller MTSPP instances.
For node instance , do:
- For , define
- Compute a path in from to of length at most (or fail if none exists). This is a BFS subroutine.
- If all are found, output .
- Otherwise let be the first index where no path was found, and branch as described below.
Observation (intersection lemma). If the greedy loop breaks at and a solution exists, then contains an internal vertex that is also an internal vertex of some previously found greedy path with . Formally:
The proof is by contradiction: otherwise would be contained in , so the BFS step would have found a feasible path.
Branching rule. For every and every with , create a child instance by:
- Keeping all triples for .
- Replacing by .
- Adding as a new -st triple.
This rule is safe: The original instance is solvable iff at least one child instance is solvable (split at a guessed intersection vertex, and conversely concatenate the split paths).
Apply the greedy phase plus branching repeatedly until either some (dead end) or a full solution is found.
For the running time, use the measure Then , each branching step creates at most children, and every child decreases the measure by at least one. Therefore the search tree has at most nodes, giving total running time .
I advised Michael Huber who wrote his thesis [6] about packing short paths. He wrote a clean version of the above algorithm, improved it, and implemented the result. I just now compared this with a straightforward ILP and Michael’s work seems to outperform the ILP by quite a bit.
- Empirical Evaluation of Approximation Algorithms for Generalized Graph Coloring and Uniform Quasi-wideness, Nadara, W., Pilipczuk, M., Rabinovich, R., Reidl, F., Siebertz, S. ACM Journal of Experimental Algorithmics. 24, 2.6:1–2.6:34 (2019).
- A Practical Algorithm for 2-Admissibility, Awofeso, C., Greaves, P., Lachish, O., Reidl, F. In: 23rd International Symposium on Experimental Algorithms, SEA 2025, Venice, Italy, July 22-24, 2025. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2025).
- A Practical Algorithm for 3-Admissibility, Awofeso, C., Greaves, P., Lachish, O., Reidl, F. In: SOFSEM 2026: Theory and Practice of Computer Science - 51st International Conference on Current Trends in Theory and Practice of Computer Science, SOFSEM 2026, Kraków, Poland, February 9-13, 2026, Proceedings. Springer (2026).
- ESCAPE: Efficiently Counting All 5-Vertex Subgraphs, Pinar, A., Seshadhri, C., Vishal, V. In: Proceedings of the 26th International Conference on World Wide Web (WWW 2017). International World Wide Web Conferences Steering Committee (2017).
- Mind the Gap When Searching for Relaxed Cliques, Wünsche, N. (2021).
- How quickly can you pack short paths? Engineering a search-tree algorithm for disjoint s-t paths of bounded length, Huber, M.K. CoRR. abs/2404.10469, (2024).