phylo2vec.utils.vector.reroot_at_random# phylo2vec.utils.vector.reroot_at_random(vector_or_matrix) → ndarray[source]# Reroot a tree in phylo2vec format at a random node Parameters: vector_or_matrix (numpy.ndarray) – Phylo2Vec vector (ndim == 1)/matrix (ndim == 2) Returns: rerooted vector Return type: numpy.ndarray