Phylo2Vec: a vector representation for binary trees
Phylo2Vec introduces a compact integer vector representation for binary trees, mapping any tree with n leaves to a vector of length n-1. This method enables fast tree sampling and compressed storage compared to Newick strings. It allows researchers to calculate topological distances using Hamming distance and facilitates efficient optimization in phylogenetic inference.