rspr_dist: Rooted SPR distance (C++ core)

View source: R/RcppExports.R

rspr_distR Documentation

Rooted SPR distance (C++ core)

Description

Low-level Rcpp interface to the rspr library. Prefer the R wrapper RSPRDist() for normal use.

Usage

rspr_dist(tree1, tree2, approx, exact)

Arguments

tree1, tree2

Character vectors of Newick-format rooted binary trees. Must be the same length.

approx

Logical scalar: compute the linear-time 3-approximation?

exact

Logical scalar: compute the exact branch-and-bound distance?

Value

A named list with elements exact (integer), approx (integer), maf_1 and maf_2 (character). Elements not requested are filled with NA or empty strings.


TBRDist documentation built on Sept. 2, 2026, 5:09 p.m.