to_networkx¶
- CondensedTree.to_networkx()¶
Return a NetworkX DiGraph object representing the condensed tree.
Edges have a distance and density attribute attached giving the distance and density at which the child node leaves the cluster.
Nodes have a size attribute attached giving the number of (weighted) points that are in the cluster at the point of cluster creation (fewer points may be in the cluster at larger distance values).
Edges connecting tree roots to the phantom root have no distance attribute, because that distance is not known. If there is a single tree root, the phantom root’s maximum distance can be used instead.