This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
Computing Well-Balanced Spanning Trees of Unweighted Networks
by
Lovro Šubelj
Lovro Šubelj 1,2
1
Faculty of Computer and Information Science, University of Ljubljana, Večna pot 113, 1000 Ljubljana, Slovenia
2
Faculty of Social Sciences, University of Ljubljana, Kardeljeva ploščad 5, 1000 Ljubljana, Slovenia
Algorithms 2025, 18(12), 760; https://doi.org/10.3390/a18120760 (registering DOI)
Submission received: 8 October 2025
/
Revised: 18 November 2025
/
Accepted: 27 November 2025
/
Published: 29 November 2025
Abstract
A spanning tree of a network or graph is a subgraph that connects all nodes with the minimum number or total weight of edges. Spanning trees are among the simplest yet most effective techniques for network simplification, sampling, and uncovering a network’s backbone or skeleton. Prim’s algorithm and Kruskal’s algorithm are well-known algorithms for computing a spanning tree of a weighted network, and are therefore also the default procedure for unweighted networks in the most popular network libraries. In this paper, we empirically evaluate the performance of these algorithms on unweighted networks and compare them with priority-first search algorithms. We show that the distances between the nodes are better preserved by a simpler algorithm based on breadth-first search. The spanning trees are also more compact and well-balanced, as measured by classical graph indices. We support our findings with experiments on synthetic graphs and over a thousand real networks, and demonstrate the practical applications of the computed spanning trees. We conclude that for preserving the structure of an unweighted network, the breadth-first search algorithm should be the preferred choice.
Share and Cite
MDPI and ACS Style
Šubelj, L.
Computing Well-Balanced Spanning Trees of Unweighted Networks. Algorithms 2025, 18, 760.
https://doi.org/10.3390/a18120760
AMA Style
Šubelj L.
Computing Well-Balanced Spanning Trees of Unweighted Networks. Algorithms. 2025; 18(12):760.
https://doi.org/10.3390/a18120760
Chicago/Turabian Style
Šubelj, Lovro.
2025. "Computing Well-Balanced Spanning Trees of Unweighted Networks" Algorithms 18, no. 12: 760.
https://doi.org/10.3390/a18120760
APA Style
Šubelj, L.
(2025). Computing Well-Balanced Spanning Trees of Unweighted Networks. Algorithms, 18(12), 760.
https://doi.org/10.3390/a18120760
Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details
here.
Article Metrics
Article Access Statistics
For more information on the journal statistics, click
here.
Multiple requests from the same IP address are counted as one view.