File: phylonodemixlen.cpp

package info (click to toggle)
iqtree 1.6.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,140 kB
  • sloc: cpp: 111,752; ansic: 53,619; python: 242; sh: 195; makefile: 52
file content (22 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (3)
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));
}