# toyplot.generate module¶

toyplot.generate.barabasi_albert_graph(n=30, m=2, seed=1234)[source]

Generate a graph using the preferential attachment model of Barabasi and Albert.

toyplot.generate.prufer_tree(sequence)[source]

Use a Prufer sequence to generate a tree.