phylox.networkproperties.properties.blob_properties
- phylox.networkproperties.properties.blob_properties(network)
finds a list of all blobs of the network and their properties. Each blob is a pair (blob_size, blob_level) where blob_size is the number of nodes in the blob and blob_level is the number of reticulations in the blob.
- Parameters:
network – a phylogenetic network.
- Returns:
a list of pairs (blob_size, blob_level)
- Example:
>>> from phylox import DiNetwork >>> from phylox.networkproperties.properties import blob_properties >>> network = DiNetwork( ... edges=[(1,2),(2,3),(2,4),(3,4),(3,5),(4,6),(6,7),(6,8),(7,8),(7,9),(8,10)], ... ) >>> blob_properties(network) [(3, 1), (3, 1)]
>>> network = DiNetwork( ... edges=[(0,1),(1,2),(1,3),(2,4),(3,5),(2,5),(3,4),(4,6),(5,7)], ... ) >>> blob_properties(network) [(5, 2)]