Converts a networkx graph to a newick string.
DiGraph
A networkx tree
bool
False
Whether to record branch lengths on the tree in the newick string
strstr
str
A newick string representing the topology of the tree