phylox.classes.dinetwork.is_stack_free
- phylox.classes.dinetwork.is_stack_free(network)
Checks if the network is stack-free.
- Parameters:
network – a phylogenetic network phylox.DiNetwork.
- Returns:
true if the network is stack-free, false otherwise.
- Example:
>>> from phylox import DiNetwork >>> from phylox.classes.dinetwork import is_stack_free >>> network = DiNetwork( ... edges=[(0,1),(1,2),(1,3),(2,4),(3,5),(2,5),(3,4),(4,6),(5,7)], ... ) >>> is_stack_free(network) True
>>> network = DiNetwork( ... edges=[(0,1),(1,2),(1,3),(2,3),(3,5),(2,4),(4,5),(4,6),(5,7)], ... ) >>> is_stack_free(network) False