phylox.cherrypicking.base.get_indices_of_reducing_pairs

phylox.cherrypicking.base.get_indices_of_reducing_pairs(sequence, network)

Checks which pairs of a sequence actually reduce a given network for a given cherry-picking sequence `sequence’ reduces a given tree `tree’ input:

sequence: a list of pairs of leaves network: a network

output:

if the network is reduced by the sequence, returns the list of all indices of pairs that reduce the network otherwise returns False