Aldous-Broder algorithm (source code)

= Aldous-Broder algorithm
{c}
{wiki}

The Aldous-Broder algorithm runs a random walk and includes the edge by which each vertex other than the start is first entered. On a finite graph this yields a uniform spanning tree. The same first-entrance construction works on recurrent infinite graphs through the infinite-volume limit.