phylox.generators.lgt.base.internal_and_external_pairs

phylox.generators.lgt.base.internal_and_external_pairs(net)

Returns a list internal pairs, and a list of external pairs. A pair of leaves is internal if they are adjacent to the same internal blob, the pair is external otherwise.

Parameters:

net – a phylox DiNetwork

Returns:

a list internal pairs, and a list of external pairs