Supplementary code for the paper "The Least Balanced Graphs and Trees" by Péter Csikvári and Viktor Harangi.
Link: https://arxiv.org/abs/2502.13939
The goal of the paper and the code (presented in a Jupyter Notebook) is to study how concentrated/unbalanced the Perron vector (i.e., principal eigenvector) of a graph may be.