tests.builder.test_randgraph

tests.builder.test_randgraph#

Unit tests for the random graph generator.

Functions

test_randgraph_count(i)

Ensure the randgraph builder creates the correct number of vertices.

test_randgraph_edgetype(edgetype)

Ensure all created edges are of the given edge type.

test_randgraph_ensurelink_false()

Ensure that zero connectivity is viable with ensurelink=False.

test_randgraph_ensurelink_true()

Ensure that zero connectivity is impossible with ensurelink=True.

test_randgraph_stresstest()

Generate a few hundred random graphs, with increasing numbers of nodes.