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