Answers are grounded in this paper and cite their sources.
Network science frequently seeks general laws of connectivity that persist across scales and disciplines, regardless of specific edge weights. A primitive in this setting is the computation of unweighted all-pairs shortest paths (APSP), which underlies measures of distance, centrality [1], and navigability [2]. However, the canonical Zuse-Moore breadth-first search (ZM-BFS) [3,4] algorithm is prohibitively slow for large and dense networks. Here, leveraging network science principles [2], we introduce CC-BFS: a dynamic programming algorithm for APSP. By prioritizing influential hubs, memoizing intermediate results and exploiting network hierarchy, CC-BFS drastically reduces computational effort, with up to 2500× speedup over ZM-BFS on scale-free networks. Furthermore, CC-BFS substantially outperforms the state-of-the-art direction-optimizing BFS (DO-BFS) [5] across diverse artificial and real-world benchmarks, while utilizing around 80% less memory. In practice, solving the APSP problem on dense and scale-free topologies can approach a time complexity of 0 (n2.5) and in networks with 100,000 nodes passes from over 2 days for ZM-BFS to around 2 minutes for CC-BFS, which represents a milestone potentially impacting many domains of science. CC-BFS scales across shared-memory threads and generalizes to related problems like computing network diameter and radius. By integrating network science into algorithm design, CC-BFS overcomes long-standing scalability challenges, opening new avenues for network-based computational analysis.
No takes yet. Share an insight, caveat, or question.
Chen et al. (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: