Return a random lobster.
A lobster is a tree that reduces to a caterpillar when pruning all leaf nodes.
A caterpillar is a tree that reduces to a path graph when pruning all leaf nodes (p2=0).
Parameters : | n : int
p1 : float
p2 : float
seed : int, optional
|
---|