1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
//
// phylonodemixlen.cpp
// iqtree
//
// Created by Minh Bui on 24/08/15.
//
//
#include "phylonodemixlen.h"
void PhyloNodeMixlen::addNeighbor(Node *node, double length, int id) {
neighbors.push_back(new PhyloNeighborMixlen(node, length, id));
}
void PhyloNodeMixlen::addNeighbor(Node *node, DoubleVector &length, int id) {
if (length.empty())
addNeighbor(node, -1.0, id);
else if (length.size() == 1)
addNeighbor(node, length[0], id);
else
neighbors.push_back(new PhyloNeighborMixlen(node, length, id));
}
|