cassiopeia.data.to_newick# cassiopeia.data.to_newick(tree, record_branch_lengths=False, record_node_names=False)[source]# Converts a networkx graph to a newick string. Parameters: tree DiGraphA networkx tree record_branch_lengths bool (default: False)Whether to record branch lengths on the tree in the newick string record_node_names bool (default: False)Whether to record internal node names on the tree in the newick string Return type: str Returns: A newick string representing the topology of the tree