Treeswift

Latest version: v1.1.45

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

1.1.39

* Fixed a bug in `Tree.distance_between` when one node is the other's parent
* Thanks, yueyujiang!

1.1.38

* Fixed a typo that caused infinite recursion when attempting to copy a `treeswift.Node` object (thanks, JSdoubleL!)

1.1.37

* Added `write_tree_nexus` function to `Tree` objects

1.1.36

* Fixed bug where `node_params` and `edge_params` weren't getting copied when extracting a subtree or copying a tree (thanks, pekarj!)

1.1.35

* Added ability to parse Newick files where a single tree is written across multiple lines

1.1.34

* Added `Tree.num_cherries()`, which returns the number of cherries (i.e., internal nodes where all children are leaves) in a `Tree`
* Note that, if a `Tree` is multifurcating, an internal node is only counted as a cherry if *all* of its children are leaves

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.