phylox.generators.zods.zods.multree_to_dinetwork
- phylox.generators.zods.zods.multree_to_dinetwork(multree, hybrid_nodes)
Converts a multree to a DiNetwork.
- Parameters:
multree (networkx.DiGraph) – The multree to convert. Edges must have a LENGTH_ATTR attribute.
hybrid_nodes (dict) – A dictionary mapping hybrid nodes to their hybrid number.
- Returns:
network – The converted network.
- Return type: