Efficient Prime Paths Generation
Jakub Zelek, Jakub Ruszil, Adam Roman, Artur Pola\'nski

TL;DR
This paper introduces a novel, efficient algorithm for generating prime paths in directed graphs, significantly reducing computational overhead compared to existing methods.
Contribution
It presents a new approach based on strongly connected components and a streaming algorithm that incrementally outputs prime paths with improved performance.
Findings
Outperforms existing prime path generation methods in real-world datasets
Reduces search space by leveraging SCC boundary crossings for pruning
Maintains stable inter-output delay during prime path enumeration
Abstract
Prime path coverage is a powerful structural testing criterion, but generating all prime paths in a directed graph remains computationally challenging due to the potentially exponential number of them. Existing approaches typically rely on enumerating large sets of candidate paths and filtering them, leading to high computational and memory overhead. In this paper, we present a new approach to prime path generation based on a structural characterization of prime paths in terms of strongly connected components. This characterization yields non-trivial necessary conditions for valid path endpoints and reduces the problem to constrained cycle enumeration in an augmented graph. As a result, we avoid explicitly enumerating all simple paths and instead generate only feasible candidates. Building on this insight, we design a streaming algorithm that outputs prime paths incrementally, using…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
