phylox.cherrypicking.base.find_reducible_pairs_with_second
- phylox.cherrypicking.base.find_reducible_pairs_with_second(N, x)
Finds a list of reducible pairs (cherries and reticulated cherries) in the network N with leaf x as second element of the pair.
- Parameters:
N – a phylogenetic network.
x – a leaf of the network N.
- Returns:
a list of reducible pairs (cherries and reticulated cherries) in the network N with leaf x as second element of the pair.
- Example:
>>> from phylox import DiNetwork >>> from phylox.cherrypicking.base import find_reducible_pairs_with_second >>> network = DiNetwork( ... edges=[(-1,0), (0,1), (0,2), (1,2), (1,3), (2,4)], ... ) >>> find_reducible_pairs_with_second(network, 3) [(4, 3)]