mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 04:10:26 +08:00
30 lines
703 B
C++
30 lines
703 B
C++
// $Id: njConstrain.h 962 2006-11-07 15:13:34Z privmane $
|
|
|
|
#ifndef ___NJ_CONSTRAINT
|
|
#define ___NJ_CONSTRAINT
|
|
|
|
#include <map>
|
|
|
|
|
|
#include "sequenceContainer.h"
|
|
#include "tree.h"
|
|
using namespace std;
|
|
|
|
class njConstraint {
|
|
public:
|
|
njConstraint(const tree& starttree, const tree& constraintTree);
|
|
bool isCompatible(const tree::nodeP& n1, const tree::nodeP& n2, const bool verbose=false) const;
|
|
void join(const tree::nodeP& n1, const tree::nodeP& n2, const tree::nodeP& newFather);
|
|
void output(ostream &out) const;
|
|
|
|
private:
|
|
tree _cTree; // constriant tree
|
|
map<tree::nodeP,tree::nodeP> _interTreeMap;
|
|
|
|
|
|
};
|
|
|
|
ostream &operator<<(ostream &out, const njConstraint &c);
|
|
|
|
#endif // ___NJ_CONSTRAINT
|