harissa.model.tree module#
Generate random trees
Functions#
Compute the loop erasure of a given path. |
|
Make one step of the random walk on the weighted graph defined by a. |
|
Generate a random spanning tree rooted in node 0 from the uniform distribution with weights given by matrix a (using Wilson's method). |
|
Generate a random tree-like network model. |
- harissa.model.tree.random_step(state, a)[source]#
Make one step of the random walk on the weighted graph defined by a. NB: here we construct an in-tree so all directions are reversed.