phylox.cherrypicking.base.add_pair
- phylox.cherrypicking.base.add_pair(network, x, y, height=[1, 1], inplace=False, nodes_by_label=False)
Adds a pair to the network, using the construction from a cherry-picking sequence :param x: first element of the pair :param y: second element of the pair :param height: height of the pair :param inplace: if true, the network is modified in place, otherwise a copy is returned :param nodes_by_label: if true, the nodes are indexed by their label, otherwise by their index :return: the network with the pair added