bpp-core3
3.0.0
|
#include <Bpp/Graph/AssociationTreeGraphImplObserver.h>
Public Types | |
typedef AssociationGraphObserver< N, E >::NodeIndex | NodeIndex |
typedef AssociationGraphObserver< N, E >::EdgeIndex | EdgeIndex |
typedef Graph::NodeId | NodeGraphid |
typedef Graph::EdgeId | EdgeGraphid |
typedef AssociationGraphObserver< N, E >::NodeIterator | NodeIterator |
typedef AssociationGraphObserver< N, E >::EdgeIterator | EdgeIterator |
using | Eref = std::shared_ptr< E > |
using | Nref = std::shared_ptr< N > |
Public Member Functions | |
AssociationTreeGraphImplObserver (bool rooted=false) | |
AssociationTreeGraphImplObserver (std::shared_ptr< TreeGraphImpl > subjectTreeGraph) | |
AssociationTreeGraphImplObserver (bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl > const &treeGraphObserver) | |
template<class N2 , class E2 > | |
AssociationTreeGraphImplObserver (bpp::AssociationTreeGraphImplObserver< N2, E2, TreeGraphImpl > const &treeGraphObserver) | |
AssociationTreeGraphImplObserver< N, E, TreeGraphImpl > & | operator= (bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl > const &treeGraphObserver) |
~AssociationTreeGraphImplObserver () | |
AssociationTreeGraphImplObserver< N, E, TreeGraphImpl > * | clone () const |
bool | isValid () const |
std::shared_ptr< E > | getEdgeToFather (const std::shared_ptr< N > nodeObject) const |
std::shared_ptr< E > | getEdgeToFather (const NodeIndex index) const |
void | rootAt (const std::shared_ptr< N > root) |
Sets the root and make the tree directed from root to leaves. More... | |
bool | isRooted () const |
std::shared_ptr< N > | getFatherOfNode (const std::shared_ptr< N > nodeObject) const |
bool | hasFather (const std::shared_ptr< N > nodeObject) const |
bool | hasFather (const NodeIndex index) const |
std::vector< std::shared_ptr< N > > | getSons (const std::shared_ptr< N > node) const |
std::vector< NodeIndex > | getSons (const NodeIndex node) const |
std::vector< std::shared_ptr< E > > | getBranches (const std::shared_ptr< N > node) const |
std::vector< EdgeIndex > | getBranches (const NodeIndex node) const |
std::shared_ptr< N > | getSon (const std::shared_ptr< E > edge) const |
NodeIndex | getSon (const EdgeIndex edge) const |
std::shared_ptr< N > | getFatherOfEdge (const std::shared_ptr< E > edge) const |
NodeIndex | getFatherOfEdge (const EdgeIndex edge) const |
size_t | getNumberOfSons (const std::shared_ptr< N > node) const |
std::vector< std::shared_ptr< N > > | getLeavesUnderNode (std::shared_ptr< N > node) const |
std::vector< NodeIndex > | getLeavesUnderNode (NodeIndex node) const |
std::vector< std::shared_ptr< N > > | removeSons (const std::shared_ptr< N > node) |
void | removeSon (const std::shared_ptr< N > node, const std::shared_ptr< N > son) |
void | setFather (const std::shared_ptr< N > nodeObject, const std::shared_ptr< N > fatherNodeObject, const std::shared_ptr< E > edgeObject=0) |
void | addSon (const std::shared_ptr< N > nodeObject, const std::shared_ptr< N > sonNodeObject, const std::shared_ptr< E > edgeObject=0) |
std::unique_ptr< typename AssociationTreeGraphObserver< N, E >::NodeIterator > | sonsIterator (std::shared_ptr< N > node) |
std::unique_ptr< typename AssociationTreeGraphObserver< N, E >::NodeIterator > | sonsIterator (std::shared_ptr< N > node) const |
std::unique_ptr< typename AssociationTreeGraphObserver< N, E >::EdgeIterator > | branchesIterator (std::shared_ptr< N > node) |
std::unique_ptr< typename AssociationTreeGraphObserver< N, E >::EdgeIterator > | branchesIterator (std::shared_ptr< N > node) const |
std::vector< std::shared_ptr< N > > | getNodePathBetweenTwoNodes (const std::shared_ptr< N > nodeA, const std::shared_ptr< N > nodeB, bool includeAncestor=true) const |
Get a vector of ancestor nodes between to nodes. More... | |
std::vector< std::shared_ptr< E > > | getEdgePathBetweenTwoNodes (const std::shared_ptr< N > nodeA, const std::shared_ptr< N > nodeB) const |
std::vector< NodeIndex > | getNodePathBetweenTwoNodes (const NodeIndex nodeA, const NodeIndex nodeB, bool includeAncestor=true) const |
std::vector< EdgeIndex > | getEdgePathBetweenTwoNodes (const NodeIndex nodeA, const NodeIndex nodeB, bool includeAncestor=true) const |
std::vector< std::shared_ptr< N > > | getSubtreeNodes (const std::shared_ptr< N > localRoot) const |
std::vector< std::shared_ptr< E > > | getSubtreeEdges (const std::shared_ptr< N > localRoot) const |
std::vector< NodeIndex > | getSubtreeNodes (const NodeIndex localRoot) const |
std::vector< EdgeIndex > | getSubtreeEdges (const NodeIndex localRoot) const |
std::shared_ptr< N > | MRCA (const std::vector< std::shared_ptr< N >> vNodeObject) const |
Graph Relations Management | |
Modificating the structure of the graph. | |
virtual void | createNode (std::shared_ptr< N > newNodeObject)=0 |
virtual void | createNode (std::shared_ptr< N > objectOriginNode, std::shared_ptr< N > newNodeObject, std::shared_ptr< E > newEdgeObject=00)=0 |
virtual void | link (std::shared_ptr< N > nodeObjectA, std::shared_ptr< N > nodeObjectB, std::shared_ptr< E > edgeObject=00)=0 |
virtual void | unlink (std::shared_ptr< N > nodeObjectA, std::shared_ptr< N > nodeObjectB)=0 |
virtual void | deleteNode (std::shared_ptr< N > nodeObject)=0 |
Object Association | |
virtual void | associateNode (std::shared_ptr< N > nodeObject, NodeGraphid node)=0 |
virtual void | associateEdge (std::shared_ptr< E > edgeObject, EdgeGraphid edge)=0 |
virtual void | dissociateNode (std::shared_ptr< N > nodeObject)=0 |
virtual void | dissociateEdge (std::shared_ptr< E > edgeObject)=0 |
virtual NodeGraphid | getNodeGraphid (const std::shared_ptr< N > nodeObject) const =0 |
virtual EdgeGraphid | getEdgeGraphid (const std::shared_ptr< E > edgeObject) const =0 |
virtual const std::shared_ptr< N > | getNodeFromGraphid (NodeGraphid) const =0 |
virtual std::shared_ptr< N > | getNodeFromGraphid (NodeGraphid)=0 |
virtual std::vector< std::shared_ptr< N > > | getNodesFromGraphid (std::vector< NodeGraphid >) const =0 |
virtual std::shared_ptr< E > | getEdgeFromGraphid (EdgeGraphid)=0 |
virtual const std::shared_ptr< E > | getEdgeFromGraphid (EdgeGraphid) const =0 |
virtual std::vector< std::shared_ptr< E > > | getEdgesFromGraphid (std::vector< EdgeGraphid >) const =0 |
virtual std::shared_ptr< N > | getRoot () const =0 |
virtual NodeIndex | getRootIndex () const =0 |
Object Indexation | |
Get or set indexes to nodes and edges | |
virtual bool | hasNodeIndex (const std::shared_ptr< N > nodeObject) const =0 |
return if the object has an index. More... | |
virtual bool | hasEdgeIndex (const std::shared_ptr< E > edgeObject) const =0 |
virtual NodeIndex | getNodeIndex (const std::shared_ptr< N > nodeObject) const =0 |
virtual std::vector< NodeIndex > | getNodeIndexes (std::vector< std::shared_ptr< N >> nodeObjects) const =0 |
virtual EdgeIndex | getEdgeIndex (const std::shared_ptr< E > edgeObject) const =0 |
virtual std::vector< EdgeIndex > | getEdgeIndexes (std::vector< std::shared_ptr< E >> edgeObjects) const =0 |
virtual NodeIndex | setNodeIndex (const std::shared_ptr< N > nodeObject, NodeIndex index)=0 |
virtual EdgeIndex | setEdgeIndex (const std::shared_ptr< E > edgeObject, EdgeIndex index)=0 |
virtual bool | hasNode (NodeIndex nodeIndex) const =0 |
virtual bool | hasEdge (EdgeIndex edgeIndex) const =0 |
virtual std::shared_ptr< N > | getNode (NodeIndex nodeIndex) const =0 |
virtual std::shared_ptr< E > | getEdge (EdgeIndex edgeIndex) const =0 |
Iterator interface on Nodes | |
virtual std::unique_ptr< NodeIterator > | allNodesIterator ()=0 |
virtual std::unique_ptr< NodeIterator > | allNodesIterator () const =0 |
virtual std::unique_ptr< NodeIterator > | outgoingNeighborNodesIterator (std::shared_ptr< N > node)=0 |
virtual std::unique_ptr< NodeIterator > | outgoingNeighborNodesIterator (std::shared_ptr< N > node) const =0 |
virtual std::unique_ptr< NodeIterator > | incomingNeighborNodesIterator (std::shared_ptr< N > node)=0 |
virtual std::unique_ptr< NodeIterator > | incomingNeighborNodesIterator (std::shared_ptr< N > node) const =0 |
virtual std::vector< std::shared_ptr< N > > | getNeighbors (const std::shared_ptr< N > node) const =0 |
virtual std::vector< NodeIndex > | getNeighbors (NodeIndex node) const =0 |
virtual std::vector< std::shared_ptr< E > > | getEdges (const std::shared_ptr< N > node) const =0 |
virtual std::vector< EdgeIndex > | getEdges (NodeIndex node) const =0 |
virtual std::vector< std::shared_ptr< N > > | getOutgoingNeighbors (const std::shared_ptr< N > node) const =0 |
virtual std::vector< NodeIndex > | getOutgoingNeighbors (NodeIndex node) const =0 |
virtual std::vector< std::shared_ptr< E > > | getOutgoingEdges (const std::shared_ptr< N > node) const =0 |
virtual std::vector< EdgeIndex > | getOutgoingEdges (NodeIndex node) const =0 |
virtual std::vector< std::shared_ptr< N > > | getIncomingNeighbors (const std::shared_ptr< N > node) const =0 |
virtual std::vector< NodeIndex > | getIncomingNeighbors (NodeIndex node) const =0 |
virtual std::vector< std::shared_ptr< E > > | getIncomingEdges (const std::shared_ptr< N > node) const =0 |
virtual std::vector< EdgeIndex > | getIncomingEdges (NodeIndex node) const =0 |
virtual std::vector< std::shared_ptr< N > > | getLeavesFromNode (std::shared_ptr< N > node, unsigned int maxDepth) const =0 |
virtual std::vector< std::shared_ptr< N > > | getAllLeaves () const =0 |
virtual std::vector< NodeIndex > | getAllLeavesIndexes () const =0 |
virtual std::vector< std::shared_ptr< N > > | getAllInnerNodes () const =0 |
virtual std::vector< NodeIndex > | getAllInnerNodesIndexes () const =0 |
virtual std::vector< std::shared_ptr< N > > | getAllNodes () const =0 |
virtual std::vector< NodeIndex > | getAllNodesIndexes () const =0 |
Iterator interface on Edges | |
virtual std::unique_ptr< EdgeIterator > | allEdgesIterator ()=0 |
virtual std::unique_ptr< EdgeIterator > | outgoingEdgesIterator (std::shared_ptr< N > node)=0 |
virtual std::unique_ptr< EdgeIterator > | incomingEdgesIterator (std::shared_ptr< N > node)=0 |
virtual std::vector< std::shared_ptr< E > > | getAllEdges () const =0 |
virtual std::vector< EdgeIndex > | getAllEdgesIndexes () const =0 |
virtual std::shared_ptr< E > | getEdgeLinking (std::shared_ptr< N > nodeA, std::shared_ptr< N > nodeB) const =0 |
virtual void | setEdgeLinking (std::shared_ptr< N > nodeA, std::shared_ptr< N > nodeB, std::shared_ptr< E > edge)=0 |
Function called by the subjectGraph | |
Methods called by the subject graph to make this observer so fit the subject graph | |
virtual void | deletedEdgesUpdate (const std::vector< unsigned int > &edgesToDelete)=0 |
virtual void | deletedNodesUpdate (const std::vector< unsigned int > &nodesToDelete)=0 |
const std::shared_ptr< TreeGraphImpl > | getGraph () const |
std::shared_ptr< TreeGraphImpl > | getGraph () |
bool | hasNode (Nref nodeObject) const |
bool | hasEdge (Eref edgeObject) const |
std::string | nodeToString (const Nref nodeObject) const |
std::string | edgeToString (const Eref edgeObject) const |
Object Indexation | |
Get or set indexes to nodes and edges | |
bool | hasNode (NodeIndex node) const |
bool | hasEdge (EdgeIndex edge) const |
bool | hasNodeIndex (const Nref nodeObject) const |
return if the object has an index. More... | |
bool | hasEdgeIndex (const Eref edgeObject) const |
NodeIndex | getNodeIndex (const Nref nodeObject) const |
std::vector< NodeIndex > | getNodeIndexes (std::vector< Nref > nodes) const |
EdgeIndex | getEdgeIndex (const Eref edgeObject) const |
std::vector< EdgeIndex > | getEdgeIndexes (std::vector< Eref > edges) const |
NodeIndex | setNodeIndex (const Nref nodeObject, NodeIndex index) |
EdgeIndex | setEdgeIndex (const Eref edgeObject, EdgeIndex index) |
NodeIndex | addNodeIndex (const Nref nodeObject) |
EdgeIndex | addEdgeIndex (const Eref edgeObject) |
Nref | getNode (NodeIndex node) const |
Eref | getEdge (EdgeIndex edge) const |
Graph Relations Management | |
Modificating the structure of the graph. | |
void | createNode (Nref nodeObject) |
void | createNode (Nref objectOriginNode, Nref newNodeObject, Eref newEdgeObject=00) |
void | link (Nref nodeObjectA, Nref nodeObjectB, Eref edgeObject=00) |
void | unlink (Nref nodeObjectA, Nref nodeObjectB) |
void | deleteNode (Nref nodeObject) |
Object Association | |
void | associateNode (Nref nodeObject, NodeGraphid graphNode) |
void | associateEdge (Eref edgeObject, EdgeGraphid graphEdge) |
void | dissociateNode (Nref nodeObject) |
void | dissociateEdge (Eref edgeObject) |
NodeGraphid | getNodeGraphid (const Nref nodeObject) const |
EdgeGraphid | getEdgeGraphid (const Eref edgeObject) const |
Nref | getNodeFromGraphid (NodeGraphid node) |
const Nref | getNodeFromGraphid (NodeGraphid node) const |
std::vector< Nref > | getNodesFromGraphid (std::vector< NodeGraphid > nodes) const |
Eref | getEdgeFromGraphid (EdgeGraphid edge) |
const Eref | getEdgeFromGraphid (EdgeGraphid edge) const |
std::vector< Eref > | getEdgesFromGraphid (std::vector< EdgeGraphid > edges) const |
void | setRoot (const Nref newRoot) |
set the root (but no checking, to be used at first construction) More... | |
Nref | getRoot () const |
NodeIndex | getRootIndex () const |
Topology exploration | |
These methodes of the graph concern the topology exploration. | |
void | outputToDot (const std::string &fname, const std::string &name) const |
void | outputToDot (std::ostream &out, const std::string &name) const |
Iterators on Nodes | |
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIterator > | allNodesIterator () |
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIterator > | allNodesIterator () const |
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIterator > | outgoingNeighborNodesIterator (Nref node) |
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIterator > | outgoingNeighborNodesIterator (Nref node) const |
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIterator > | incomingNeighborNodesIterator (Nref node) |
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIterator > | incomingNeighborNodesIterator (Nref node) const |
std::vector< Nref > | getNeighbors (const Nref node) const |
std::vector< NodeIndex > | getNeighbors (NodeIndex node) const |
std::vector< Eref > | getEdges (const Nref node) const |
std::vector< EdgeIndex > | getEdges (NodeIndex node) const |
std::vector< Nref > | getOutgoingNeighbors (const Nref node) const |
std::vector< NodeIndex > | getOutgoingNeighbors (NodeIndex node) const |
std::vector< Eref > | getOutgoingEdges (const Nref node) const |
std::vector< EdgeIndex > | getOutgoingEdges (NodeIndex node) const |
std::vector< Nref > | getIncomingNeighbors (const Nref node) const |
std::vector< NodeIndex > | getIncomingNeighbors (NodeIndex node) const |
std::vector< Eref > | getIncomingEdges (const Nref node) const |
std::vector< EdgeIndex > | getIncomingEdges (NodeIndex node) const |
std::vector< Nref > | getLeavesFromNode (Nref node, unsigned int maxDepth) const |
std::vector< Nref > | getAllLeaves () const |
std::vector< NodeIndex > | getAllLeavesIndexes () const |
std::vector< Nref > | getAllInnerNodes () const |
std::vector< NodeIndex > | getAllInnerNodesIndexes () const |
std::vector< Nref > | getAllNodes () const |
std::vector< NodeIndex > | getAllNodesIndexes () const |
std::vector< EdgeIndex > | getAllEdgesIndexes () const |
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIterator > | allEdgesIterator () |
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIterator > | allEdgesIterator () const |
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIterator > | outgoingEdgesIterator (Nref node) |
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIterator > | outgoingEdgesIterator (Nref node) const |
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIterator > | incomingEdgesIterator (Nref node) |
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIterator > | incomingEdgesIterator (Nref node) const |
std::vector< Eref > | getAllEdges () const |
bool | isLeaf (const Nref node) const |
Is the node a leaf? More... | |
bool | isLeaf (const NodeIndex nodeid) const |
std::pair< Nref, Nref > | getNodes (Eref edge) const |
Eref | getEdgeLinking (Nref nodeA, Nref nodeB) const |
void | setEdgeLinking (Nref nodeA, Nref nodeB, Eref edge) |
Function called by the subjectGraph | |
These methodes are called by the subject graph to make this observer so fit the subject graph | |
void | deletedEdgesUpdate (const std::vector< unsigned int > &edgesToDelete) |
void | deletedNodesUpdate (const std::vector< unsigned int > &nodesToDelete) |
General Info | |
General information about the graph | |
size_t | getNumberOfNodes () const |
size_t | getNumberOfEdges () const |
size_t | getNumberOfLeaves () const |
size_t | getDegree (const Nref node) const |
Static Public Member Functions | |
template<class A , class B > | |
static B * | copy (const A &a, typename std::enable_if< !std::is_base_of< B, A >::value &&!std::is_abstract< B >::value, B *>::type *=0) |
template<class A , class B > | |
static B * | copy (const A &a, typename std::enable_if< !std::is_base_of< B, A >::value &&std::is_abstract< B >::value, B *>::type *=0) |
template<class A , class B > | |
static B * | copy (const A &a, typename std::enable_if< std::is_base_of< B, A >::value &&!std::is_abstract< A >::value, B *>::type *=0) |
template<class A , class B > | |
static B * | copy (const A &a, typename std::enable_if< std::is_base_of< B, A >::value &&std::is_abstract< A >::value &&std::is_base_of< Clonable, A >::value, B *>::type *=0) |
template<class A , class B > | |
static B * | copy (const A &a, typename std::enable_if< std::is_base_of< B, A >::value &&std::is_abstract< A >::value &&!std::is_base_of< Clonable, A >::value, B *>::type *=0) |
Protected Attributes | |
std::shared_ptr< TreeGraphImpl > | subjectGraph_ |
Definition at line 21 of file AssociationTreeGraphImplObserver.h.
typedef Graph::EdgeId bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::EdgeGraphid |
Definition at line 31 of file AssociationTreeGraphImplObserver.h.
typedef AssociationGraphObserver<N, E>::EdgeIndex bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::EdgeIndex |
Definition at line 27 of file AssociationTreeGraphImplObserver.h.
|
inherited |
Definition at line 183 of file AssociationTreeGraphObserver.h.
|
inherited |
Definition at line 35 of file AssociationGraphImplObserver.h.
typedef Graph::NodeId bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::NodeGraphid |
Definition at line 29 of file AssociationTreeGraphImplObserver.h.
typedef AssociationGraphObserver<N, E>::NodeIndex bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::NodeIndex |
Definition at line 26 of file AssociationTreeGraphImplObserver.h.
|
inherited |
Iterators
Definition at line 182 of file AssociationTreeGraphObserver.h.
|
inherited |
Definition at line 36 of file AssociationGraphImplObserver.h.
|
inline |
Constructor
rooted | if the graph rooted |
Definition at line 38 of file AssociationTreeGraphImplObserver.h.
|
inline |
Constructor
subjectTreeGraph | the graph which is observed |
Definition at line 47 of file AssociationTreeGraphImplObserver.h.
|
inline |
Copy Constructor
treeGraphObserver | the treeGraphObserver to be copied |
Definition at line 56 of file AssociationTreeGraphImplObserver.h.
|
inline |
Copy Constructor
treeGraphObserver | the treeGraphObserver to be copied |
Definition at line 66 of file AssociationTreeGraphImplObserver.h.
|
inline |
Destructor
Definition at line 85 of file AssociationTreeGraphImplObserver.h.
|
inlineinherited |
Add an index associated to an edge
edgeObject | object to which one want to set the index |
Definition at line 852 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString().
|
inlineinherited |
Set an new index associated to a node
nodeObject | object to which one want to set the index |
Definition at line 821 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
|
inlinevirtual |
Add a son to a node
nodeObject | the concerned node |
sonNodeObject | the node to be added as a son to the father |
edgeObject | the optional edge between the nodes (default = 00) |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 288 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1363 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 1368 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1025 of file AssociationGraphImplObserver.h.
Referenced by bpp::ComputationTree::isAllSum().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1030 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
Associate a E object to an edge in the graph.
edgeObject | object to associate |
edge | existing edge to be associated |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Associate a E object to an edge in the graph.
edgeObject | object to associate |
graphEdge | existing edge to be associated |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 554 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge().
|
pure virtualinherited |
Associate a N object to a node in the graph.
nodeObject | object to associate |
node | existing node to be associated |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Associate a N object to a node in the graph.
nodeObject | object to associate |
graphNode | existing node to be associated |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 534 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 319 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::outgoingEdgesIterator().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 324 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::outgoingEdgesIterator().
|
inlinevirtual |
clone function
Implements bpp::Clonable.
Reimplemented in bpp::ComputationTree.
Definition at line 92 of file AssociationTreeGraphImplObserver.h.
|
inlinestaticinherited |
Specific copy of A and B objects, if clonable or not.
Definition at line 45 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 51 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 58 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 64 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 70 of file AssociationGraphObserver.h.
References bpp::AssociationGraphObserver< N, E >::associateEdge(), bpp::AssociationGraphObserver< N, E >::associateNode(), bpp::AssociationGraphObserver< N, E >::createNode(), bpp::AssociationGraphObserver< N, E >::deleteNode(), bpp::AssociationGraphObserver< N, E >::dissociateEdge(), bpp::AssociationGraphObserver< N, E >::dissociateNode(), bpp::AssociationGraphObserver< N, E >::getEdge(), bpp::AssociationGraphObserver< N, E >::getEdgeFromGraphid(), bpp::AssociationGraphObserver< N, E >::getEdgeGraphid(), bpp::AssociationGraphObserver< N, E >::getEdgeIndex(), bpp::AssociationGraphObserver< N, E >::getEdgeIndexes(), bpp::AssociationGraphObserver< N, E >::getEdgesFromGraphid(), bpp::AssociationGraphObserver< N, E >::getNode(), bpp::AssociationGraphObserver< N, E >::getNodeFromGraphid(), bpp::AssociationGraphObserver< N, E >::getNodeGraphid(), bpp::AssociationGraphObserver< N, E >::getNodeIndex(), bpp::AssociationGraphObserver< N, E >::getNodeIndexes(), bpp::AssociationGraphObserver< N, E >::getNodesFromGraphid(), bpp::AssociationGraphObserver< N, E >::getRoot(), bpp::AssociationGraphObserver< N, E >::getRootIndex(), bpp::AssociationGraphObserver< N, E >::hasEdge(), bpp::AssociationGraphObserver< N, E >::hasEdgeIndex(), bpp::AssociationGraphObserver< N, E >::hasNode(), bpp::AssociationGraphObserver< N, E >::hasNodeIndex(), bpp::AssociationGraphObserver< N, E >::link(), bpp::AssociationGraphObserver< N, E >::setEdgeIndex(), bpp::AssociationGraphObserver< N, E >::setNodeIndex(), and bpp::AssociationGraphObserver< N, E >::unlink().
|
pure virtualinherited |
Creates an orphaned node from a NodeClass object.
newNodeObject | the N object associated to the node in the graph. |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
pure virtualinherited |
Creates an node linked to an existing node. Order of parameters match the link method.
newNodeObject | the N object associated to the node in the graph. |
objectOriginNode | existing node. In a directed graph: origin -> newNode. |
newEdgeObject | optional edge between nodes (default = 00) |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
|
inlinevirtualinherited |
Creates an orphaned node from a NodeClass object.
nodeObject | the N object associated to the node in the graph. |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 438 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
Referenced by bpp::ComputationTree::readFormula_().
|
inlinevirtualinherited |
Creates an node linked to an existing node. Order of parameters match the link method.
objectOriginNode | existing node. In a directed graph: origin -> newNode. |
newNodeObject | the N object associated to the node in the graph. |
newEdgeObject | the optional edge between the nodes (default = 00) |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 455 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link().
|
pure virtualinherited |
Delete unused object edges, since they have been deleted in the graph
edgesToDelete | a vector of Edges to delete |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
|
inlinevirtualinherited |
Delete unused object edges, since they have been deleted in the graph
edgesToDelete | a vector of Edges to delete |
Implements bpp::GraphObserver.
Definition at line 1477 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
Delete unused object nodes, since they have been deleted in the graph
nodesToDelete | a vector of N to delete |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
|
inlinevirtualinherited |
Delete unused object nodes, since they have been deleted in the graph
nodesToDelete | a vector of N to delete |
Implements bpp::GraphObserver.
Definition at line 1495 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
Deletes a node
nodeObject | node to be deleted |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Deletes a node
nodeObject | node to be deleted. The N node object given in argument is not deleted. |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 513 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::dissociateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 581 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
Dissociate a N or E object to a node or an edge in the graph. Graph is not changed.
nodeObject | object to dissociate |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Dissociate a N or E object to a node or an edge in the graph.
nodeObject | object to dissociate |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 573 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 361 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdgeIndex(), and bpp::TextTools::toString().
|
pure virtualinherited |
Get all the defined edges of a graphO,
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::EdgeIterator::~EdgeIterator().
|
inlinevirtualinherited |
Get all the defined branches of a graph,
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1405 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Get indexes of all defined edges of a graph,
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1316 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex().
|
pure virtualinherited |
Get all the inner nodes of a graph, ie, nodes with degree >= 2.
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
inlinevirtualinherited |
Get all the inner nodes of a graph, ie, nodes with degree >= 2.
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1236 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph().
|
pure virtualinherited |
|
inlinevirtualinherited |
Get the indexes of all inner nodes of a graph, ie, nodes with degree >= 2.
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1257 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex().
|
pure virtualinherited |
Get all the leaves objects of a graph, ie, nodes with only one neighbor,
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
inlinevirtualinherited |
Get all the leaves objects of a graph, ie, nodes with only one neighbor,
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1193 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph().
|
pure virtualinherited |
|
inlinevirtualinherited |
Get index of the leaves objects of a graph, ie, nodes with only one neighbor,
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1214 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex().
|
pure virtualinherited |
Get all the defined nodes of a graphO,
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
inlinevirtualinherited |
Get all the defined nodes of a graph,
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1278 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Get indexes of all defined nodes of a graph,
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1297 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex().
|
inlinevirtual |
Return, in a rooted tree, the branches to the sons of a node
node | the concerned node |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 181 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 186 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
inlineinherited |
Return the number of neighbors of a node
node | the concerned node |
Definition at line 1559 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
pure virtualinherited |
Return the associated Node index
edgeIndex | the index of the wanted edge |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Return the associated Node index
edge | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 911 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfEdge(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSon().
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 649 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgeToFather().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 657 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
Return the associated Node ID
edgeObject | object which to return the node ID |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Return the associated Edge ID
edgeObject | object which to return the node ID |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 608 of file AssociationGraphImplObserver.h.
References bpp::TextTools::toString().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::addSon(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfEdge(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSon(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::setFather().
|
pure virtualinherited |
Return the associated Node index
edgeObject | object which to return the node index |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Return the associated Node index
edgeObject | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 751 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString().
|
pure virtualinherited |
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlineinherited |
Definition at line 759 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges().
|
pure virtualinherited |
Returns the Edge between two nodes nodeA -> nodeB
nodeA | source node (if directed) |
nodeB | destination node (if directed) |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::EdgeIterator::~EdgeIterator().
|
inlinevirtualinherited |
Returns the Edge between two nodes nodeA -> nodeB
nodeA | source node (if directed) |
nodeB | destination node (if directed) |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1449 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 343 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes().
|
inline |
Definition at line 353 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeIndexes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode().
|
pure virtualinherited |
Get all the edges from/to a node in the graph.
node | the node one wants to get its neighbor edges |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
pure virtualinherited |
|
inlinevirtualinherited |
Get all the edges of a node in the graph.
node | the node one wants to get its edges |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1096 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1101 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode().
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 665 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes().
|
inlinevirtual |
Return, in a rooted tree, the branch leading to the father
nodeObject | the concerned node |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 109 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeFromGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgeToFather().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 114 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeFromGraphid(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgeToFather(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
inlinevirtual |
Return, in a rooted tree, the father of an edge
edge | the concerned edge |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 211 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeFromGraphid().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 216 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeIndex().
|
inlinevirtual |
Return, in a rooted tree, the father node
nodeObject | the concerned node |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 143 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
inlineinherited |
Definition at line 315 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::subjectGraph_.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::addSon(), bpp::ComputationTree::ComputationTree(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgeToFather(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfEdge(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNumberOfSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSon(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::hasFather(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::isRooted(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::isValid(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::MRCA(), bpp::ComputationTree::readFormula_(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::removeSon(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::removeSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::rootAt(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::setFather().
|
inlineinherited |
Definition at line 320 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::subjectGraph_.
|
pure virtualinherited |
In an directed graph, get all the edges which are coming to a node in the graph.
node | the node one wants to get its edges |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
pure virtualinherited |
|
inlinevirtualinherited |
In an directed graph, get all the edges which are coming to a node in the graph.
node | the node one wants to get its edges |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1162 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1167 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode().
|
pure virtualinherited |
In an directed graph, get all the neighbors which are coming to a node in the graph.
node | the node one wants to get its neighbors |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
pure virtualinherited |
|
inlinevirtualinherited |
In an directed graph, get all the neighbors which are coming to a node in the graph.
node | the node one wants to get its neighbors |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1145 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1150 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndexes().
|
pure virtualinherited |
Get the leaves of a graph, ie, nodes with only one neighbor, starting from a peculiar node, up to a specific depth.
node | the starting node |
maxDepth | the max recursion depth |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
inlinevirtualinherited |
Get the leaves of a graph, ie, nodes with only one neighbor, starting from a peculiar node, with maxDepth recursion depths.
node | the starting node |
maxDepth | the max recursion depth |
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1182 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getLeavesFromNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
|
inlinevirtual |
Get the leaves of a tree under a peculiar node.
node | the starting node |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 238 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode().
|
inline |
Definition at line 243 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeIndexes().
|
pure virtualinherited |
Get all the neighbors of a node in the graph.
node | the node one wants to get its neighbors |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
pure virtualinherited |
|
inlinevirtualinherited |
Get all the neighbors of a node in the graph.
node | the node one wants to get its neighbors |
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1073 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
|
inlinevirtualinherited |
Get the index of all neighbors of a node in the graph.
node | the node one wants to get its neighbors |
They are in the same order as the graphIds (and not necessary Indexes).
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1085 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndexes().
|
pure virtualinherited |
Return the associated Node, querying with an index
nodeIndex | the index of the wanted node |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Return the associated Node index
node | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 901 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgeToFather(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::hasFather().
|
pure virtualinherited |
Transforms an (a list of) id(s) into an (a list of) object(s)
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
pure virtualinherited |
|
inlinevirtualinherited |
Transforms an (a list of) id(s) into an (a list of) object(s)
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 620 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfEdge(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSon(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::MRCA().
|
inlinevirtualinherited |
Transforms an (a list of) id(s) into an (a list of) object(s)
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 627 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
Return the associated Node ID
nodeObject | object which to return the node ID |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Return the associated Node ID
nodeObject | object which to return the node ID |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 594 of file AssociationGraphImplObserver.h.
References bpp::TextTools::toString().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::addSon(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getBranches(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getEdgeToFather(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNumberOfSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::hasFather(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::MRCA(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::removeSon(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::removeSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::rootAt(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::setFather().
|
pure virtualinherited |
Return the associated Node index
nodeObject | object which to return the node index |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Return the associated Node index
nodeObject | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 728 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getFatherOfEdge(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSon().
|
pure virtualinherited |
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlineinherited |
Definition at line 737 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes().
|
inlinevirtual |
Get a vector of ancestor nodes between to nodes.
nodeA | first node. |
nodeB | second node. |
includeAncestor | Tell if the common ancestor must be included in the vector. |
PhyloNodeNotFoundException | If a node is not found. |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 338 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes().
|
inline |
Definition at line 348 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeIndexes(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes().
|
inlineinherited |
Get nodes located at the extremities of an edge
edge | an edge |
Definition at line 1437 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeFromGraphid().
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 634 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getLeavesUnderNode(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getNodePathBetweenTwoNodes(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons(), bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::removeSons().
|
inlineinherited |
Return the number of defined edges, ie edges that have a corresponding object in this GraphObserver
Definition at line 1531 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Return the number of defined leaves, ie leaves that have a corresponding object in this GraphObserver
Definition at line 1542 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::isLeaf().
|
inlineinherited |
Return the number of defined nodes, ie nodes that have a corresponding object in this GraphObserver
Definition at line 1521 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Return, in a rooted tree, the number of sons
node | the concerned node |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 227 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
pure virtualinherited |
In an directed graph, get all the edges which are leaving a node in the graph.
node | the node one wants to get its edges |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
pure virtualinherited |
|
inlinevirtualinherited |
In an directed graph, get all the edges which are leaving a node in the graph.
node | the node one wants to get its edges |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1129 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1134 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges().
|
pure virtualinherited |
In an directed graph, get all the neighbors which are leaving a node in the graph.
node | the node one wants to get its neighbors |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().
|
pure virtualinherited |
|
inlinevirtualinherited |
In an directed graph, get all the neighbors which are leaving a node in the graph.
node | the node one wants to get its neighbors |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1113 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1118 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndexes(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors().
|
pure virtualinherited |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 692 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRoot().
Referenced by bpp::ComputationTree::getFirstOrderDerivative(), bpp::ComputationTree::getSecondOrderDerivative(), bpp::ComputationTree::getValue(), and bpp::ComputationTree::output().
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 697 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRoot().
|
inlinevirtual |
Return, in a rooted tree, the son of an edge
edge | the concerned edge |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 196 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeFromGraphid().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 201 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeIndex().
|
inlinevirtual |
Return, in a rooted tree, the sons of a node
node | the concerned node |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 166 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 171 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeIndexes(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodesFromGraphid(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSons().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 363 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges().
|
inline |
Definition at line 373 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 358 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes().
|
inline |
Definition at line 368 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeIndexes(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeNodes().
|
pure virtualinherited |
Return if the Graph has an edge matching edgeIndex
edgeIndex | the index of the wanted edge |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlineinherited |
Definition at line 337 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Return if has Edge matching EdgeIndex
edge | EdgeIndex index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 891 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 718 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Has the node a father?
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 151 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 156 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
pure virtualinherited |
Return if the Graph has a node matching nodeIndex
nodeIndex | the index of the wanted node |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlineinherited |
Definition at line 330 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Return if has Node matching NodeIndex
node | NodeIndex index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 882 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
return if the object has an index.
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
return if the object has an index.
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 713 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1391 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 1396 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1055 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1060 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Is the node a leaf?
Definition at line 1421 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlineinherited |
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 133 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph().
|
inlinevirtual |
Is the graph a tree? A tree must be acyclic and with no isolated node.
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 99 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph().
|
pure virtualinherited |
Creates a link between two existing nodes. If directed graph: nodeA -> nodeB.
nodeObjectA | source node (or first node if undirected) |
nodeObjectB | target node (or second node if undirected) |
edgeObject | the optional edge between the nodes (default = 00) |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Creates a link between two existing nodes. If directed graph: nodeA -> nodeB.
nodeObjectA | source node (or first node if undirected) |
nodeObjectB | target node (or second node if undirected) |
edgeObject | the optional edge between the nodes (default = 00) |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 470 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
|
inline |
Return, in a rooted tree, the MRCA node of a vector of nodes
vNodeObject | the vector of concerned nodes |
Definition at line 383 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
inlineinherited |
Definition at line 347 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNodeIndex(), and bpp::TextTools::toString().
|
inline |
= Operator
treeGraphObserver | the treeGraphObserver we want to copy the values |
Definition at line 75 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=().
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1377 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::branchesIterator().
|
inlineinherited |
Definition at line 1382 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1040 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::sonsIterator().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1045 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 935 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlineinherited |
Definition at line 943 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeLinking(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdgeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNodeIndex().
|
inlinevirtual |
Remove a son of a node
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 260 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
inlinevirtual |
Remove the sons of a node
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 252 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodesFromGraphid().
|
inlinevirtual |
Sets the root and make the tree directed from root to leaves.
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 124 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
|
pure virtualinherited |
Set an index associated to an edge
edgeObject | object to which one want to set the index |
index | intex to be given, 0 to get the first free index |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Set an index associated to an edge
edgeObject | object to which one want to set the index |
index | intex to be given, 0 to get the first free index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 798 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge().
|
pure virtualinherited |
Sets the Edge between two nodes nodeA -> nodeB
nodeA | source node (if directed) |
nodeB | destination node (if directed) |
edge | the edge between these two nodes |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::EdgeIterator::~EdgeIterator().
|
inlinevirtualinherited |
Sets the Edge between two nodes nodeA -> nodeB
nodeA | source node (if directed) |
nodeB | destination node (if directed) |
edge | the edge between these two nodes |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1460 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtual |
Change / set the father of a node
nodeObject | the concerned node |
fatherNodeObject | the node to be the father |
edgeObject | the optional edge between the nodes (default = 00) |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 272 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::getNodeGraphid().
Referenced by bpp::ComputationTree::readFormula_().
|
pure virtualinherited |
Set an index associated to a node
nodeObject | object to which one want to set the index |
index | intex to be given, 0 to get the first free index |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Set an index associated to a node
nodeObject | object to which one want to set the index |
index | index to be given |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 774 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
|
inlineinherited |
set the root (but no checking, to be used at first construction)
Definition at line 684 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
Referenced by bpp::ComputationTree::ComputationTree().
|
inlinevirtual |
Iterators
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 305 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::outgoingNeighborNodesIterator().
|
inlinevirtual |
Implements bpp::AssociationTreeGraphObserver< N, E >.
Definition at line 310 of file AssociationTreeGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >::outgoingNeighborNodesIterator().
|
pure virtualinherited |
Detroys a link between two existing nodes in the graph. If directed graph: nodeA -> nodeB.
nodeObjectA | source node (or first node if undirected) |
nodeObjectB | target node (or second node if undirected) |
Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.
Referenced by bpp::AssociationGraphObserver< N, E >::copy().
|
inlinevirtualinherited |
Deletes the link between two existing nodes in the graph.
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 497 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString().
|
protectedinherited |
The observed Graph. Anytime this graph is observed, the current object will be warned to take changes into account.
Definition at line 44 of file AssociationGraphImplObserver.h.