40 #ifndef _BPP_GRAPH_BASICTNODE_H_ 41 #define _BPP_GRAPH_BASICTNODE_H_ 44 #include "../Exceptions.h" 56 std::vector< BasicTNode * >
sons_;
160 #endif //_BPP_GRAPH_BASICTNODE_H_ std::vector< BasicTNode *> sons_
virtual void addFather(BasicTNode *node)
Add a father to this node.
virtual void addSon(BasicTNode *node)
Add a son to this node.
bool hasSons() const
Tell if this node has one or more son nodes.
This class allows to perform a correspondence analysis.
virtual bool isSon(const BasicTNode *node) const
Tell if a node is son of this node.
BasicTNode * clone() const
Create a copy of this object and send a pointer to it.
virtual BasicTNode * removeFather()
Remove the father of this node.
virtual bool isFather(const BasicTNode *node) const
Tell if the node is a father of this node.
const BasicTNode * getNeighbor(int pos) const
Get a neighbor of this node in const context.
Simple implementation of TNode.
BasicTNode & operator=(const BasicTNode &node)
Assignation operator.
BasicTNode()
Simple constructor.
int getNumberOfFathers() const
Give the number of father nodes for this node.
bool hasFather() const
Tell if the node has a father.
const BasicTNode * getSon(int pos) const
Get a particular son in const environment.
int degree() const
Get the degree i.e. the number of neighbors of this node.
virtual void removeSon(BasicTNode *son)
Remove a son of this node.
const BasicTNode * getFather() const
Get the father in const environment.
const BasicTNode * operator[](int i) const
Direct access to a neighbor in const context.
bool hasFathers() const
Tell if this node has one or more father nodes.
virtual ~BasicTNode()
Destructor.
int getNumberOfSons() const
Give the number of son nodes for this node.