def test_random_tree():
 T = nx.random_tree(10, seed=1234)
 assert_true(nx.is_tree(T))

def test_random_tree ( ) : T = nx . random_tree ( 10 , seed = 1234 ) assert_true ( nx . is_tree ( T ) )
tests that a random tree is in fact a tree .