phylox.cherrypicking.base.cherry_height

phylox.cherrypicking.base.cherry_height(network, x, y)
Returns the height of (x,y) if it is a cherry:

i.e.: length(p,x)+length(p,y)/2

Returns false otherwise

Parameters:
  • network (phylox.DiNetwork) – The network in which we want to check the height of cherry (x,y)

  • x (string) – The first element of the pair

  • y (string) – The second element of the pair

Returns:

The height of the cherry (x,y) if it is a cherry, False otherwise

Return type:

float