phylox.cherrypicking.base.has_cherry
- phylox.cherrypicking.base.has_cherry(network, x, y)
Checks whether the pair (x,y) forms a cherry in the network
- Parameters:
network (phylox.DiNetwork) – The network in which we want to check whether (x,y) is a cherry
x (string) – The first element of the pair
y (string) – The second element of the pair
- Returns:
True if (x,y) is a cherry in the network, False otherwise
- Return type:
bool