Learn R Programming

TreeSearch (version 0.2.2)

DoubleNNI: Double NNI

Description

Returns the edge parameter of the two trees consistent with the speficied NNI rearrangement

Usage

DoubleNNI(parent, child, edgeToBreak)

Arguments

parent

tree$edge[, 1]

child

tree$edge[, 2]

edgeToBreak

index of edge to break

Value

the tree$edge parameter of the two trees consistent with the specified rearrangement