Katzlab dd76ab1d12 Added PTL2 Scripts
These are PTL2 files from Auden 2/9
2023-02-14 11:20:52 -05:00

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