bpp-core3
3.0.0
|
#include <Bpp/Graph/AssociationDAGraphImplObserver.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 | |
AssociationDAGraphImplObserver () | |
AssociationDAGraphImplObserver (std::shared_ptr< DAGraphImpl > subjectDAGraph) | |
AssociationDAGraphImplObserver (bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl > const &dAGraphObserver) | |
template<class N2 , class E2 > | |
AssociationDAGraphImplObserver (bpp::AssociationDAGraphImplObserver< N2, E2, DAGraphImpl > const &dAGraphObserver) | |
AssociationDAGraphImplObserver< N, E, DAGraphImpl > & | operator= (bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl > const &dAGraphObserver) |
~AssociationDAGraphImplObserver () | |
AssociationDAGraphImplObserver< N, E, DAGraphImpl > * | clone () const |
bool | isValid () const |
bool | isRooted () const |
std::vector< std::shared_ptr< N > > | getFathers (const std::shared_ptr< N > node) const |
std::vector< NodeIndex > | getFathers (const NodeIndex node) const |
void | rootAt (const std::shared_ptr< N > root) |
Sets the root and make the DAG directed from root to leaves. More... | |
bool | hasFather (const std::shared_ptr< N > nodeObject) const |
bool | hasFather (const NodeIndex node) const |
std::vector< std::shared_ptr< N > > | getSons (const std::shared_ptr< N > node) const |
std::vector< NodeIndex > | getSons (const NodeIndex node) const |
std::shared_ptr< N > | getSon (const std::shared_ptr< E > edge) const |
NodeIndex | getSon (const EdgeIndex edgeId) const |
std::shared_ptr< N > | getFatherOfEdge (const std::shared_ptr< E > edge) const |
NodeIndex | getFatherOfEdge (const EdgeIndex edge) const |
size_t | getNumberOfFathers (const std::shared_ptr< N > node) 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< std::shared_ptr< N > > | removeFathers (const std::shared_ptr< N > node) |
void | removeFather (const std::shared_ptr< N > node, const std::shared_ptr< N > father) |
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 | addFather (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 AssociationDAGraphObserver< N, E >::NodeIterator > | fathersIterator (std::shared_ptr< N > node) |
std::unique_ptr< typename AssociationDAGraphObserver< N, E >::NodeIterator > | fathersIterator (std::shared_ptr< N > node) const |
std::unique_ptr< typename AssociationDAGraphObserver< N, E >::NodeIterator > | sonsIterator (std::shared_ptr< N > node) |
std::unique_ptr< typename AssociationDAGraphObserver< N, E >::NodeIterator > | sonsIterator (std::shared_ptr< N > node) const |
std::vector< std::shared_ptr< N > > | getBelowNodes (const std::shared_ptr< N > localRoot) |
Get Below Objects. More... | |
std::vector< std::shared_ptr< E > > | getBelowEdges (const std::shared_ptr< N > localRoot) |
virtual std::vector< NodeIndex > | getFathers (const NodeIndex node) const =0 |
virtual bool | hasFather (const NodeIndex node) const =0 |
virtual std::vector< NodeIndex > | getSons (const NodeIndex node) const =0 |
virtual NodeIndex | getSon (const EdgeIndex edge) const =0 |
virtual NodeIndex | getFatherOfEdge (const EdgeIndex edge) const =0 |
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 |
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< DAGraphImpl > | subjectGraph_ |
const std::shared_ptr< DAGraphImpl > | getGraph () const |
std::shared_ptr< DAGraphImpl > | 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 |
enum | neighborType |
std::vector< Nref > | graphidToN_ |
std::vector< Eref > | graphidToE_ |
std::map< Nref, NodeGraphid > | NToGraphid_ |
std::map< Eref, EdgeGraphid > | EToGraphid_ |
std::vector< Nref > | indexToN_ |
std::vector< Eref > | indexToE_ |
std::map< Nref, NodeIndex > | NToIndex_ |
std::map< Eref, EdgeIndex > | EToIndex_ |
std::vector< Nref > | getNeighbors_ (const Nref nodeObject, neighborType type) const |
std::vector< Eref > | getEdges_ (const Nref nodeObject, neighborType type) const |
Definition at line 57 of file AssociationDAGraphImplObserver.h.
typedef Graph::EdgeId bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::EdgeGraphid |
Definition at line 66 of file AssociationDAGraphImplObserver.h.
typedef AssociationGraphObserver<N, E>::EdgeIndex bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::EdgeIndex |
Definition at line 63 of file AssociationDAGraphImplObserver.h.
|
inherited |
Definition at line 226 of file AssociationDAGraphObserver.h.
|
inherited |
Definition at line 71 of file AssociationGraphImplObserver.h.
typedef Graph::NodeId bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::NodeGraphid |
Definition at line 65 of file AssociationDAGraphImplObserver.h.
typedef AssociationGraphObserver<N, E>::NodeIndex bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::NodeIndex |
Definition at line 62 of file AssociationDAGraphImplObserver.h.
|
inherited |
Iterators
Definition at line 225 of file AssociationDAGraphObserver.h.
|
inherited |
Definition at line 72 of file AssociationGraphImplObserver.h.
|
privateinherited |
defines a type of neighbors : incoming and/or outgoing
Definition at line 415 of file AssociationGraphImplObserver.h.
|
inline |
Constructor
Definition at line 73 of file AssociationDAGraphImplObserver.h.
|
inline |
Constructor
subjectDAGraph | the DAGraph which is observed |
Definition at line 82 of file AssociationDAGraphImplObserver.h.
|
inline |
Copy Constructor
dAGraphObserver | the DAGraphObserver to be copied |
Definition at line 91 of file AssociationDAGraphImplObserver.h.
|
inline |
Copy Constructor
dAGraphObserver | the DAGraphObserver to be copied |
Definition at line 102 of file AssociationDAGraphImplObserver.h.
|
inline |
Destructor
Definition at line 119 of file AssociationDAGraphImplObserver.h.
|
inlineinherited |
Add an index associated to an edge
edgeObject | object to which one want to set the index |
Definition at line 888 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Add a father to a node
nodeObject | the concerned node |
fatherNodeObject | the node to be added as a father to the node |
edgeObject | the optional edge between the nodes (default = 00) |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 307 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::link().
|
inlineinherited |
Set an new index associated to a node
nodeObject | object to which one want to set the index |
Definition at line 857 of file AssociationGraphImplObserver.h.
|
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::AssociationDAGraphObserver< N, E >.
Definition at line 329 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::link().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1399 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 1404 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1061 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1066 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
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 590 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 >.
|
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 570 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtual |
clone function
Implements bpp::Clonable.
Definition at line 125 of file AssociationDAGraphImplObserver.h.
|
inlinestaticinherited |
Specific copy of A and B objects, if clonable or not.
Definition at line 82 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 88 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 95 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 107 of file AssociationGraphObserver.h.
|
inlinestaticinherited |
Definition at line 101 of file AssociationGraphObserver.h.
|
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 474 of file AssociationGraphImplObserver.h.
|
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 491 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 |
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 1513 of file AssociationGraphImplObserver.h.
|
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 nodes, since they have been deleted in the graph
nodesToDelete | a vector of N to delete |
Implements bpp::GraphObserver.
Definition at line 1531 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 |
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 549 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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 617 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
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 609 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 >.
|
inlineinherited |
Definition at line 397 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Iterators
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 353 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::incomingNeighborNodesIterator().
|
inlinevirtual |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 358 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::incomingNeighborNodesIterator().
|
inlinevirtualinherited |
Get all the defined branches of a graph,
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1441 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1352 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
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 1272 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1293 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
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 1229 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1250 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
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 1314 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1333 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtual |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 389 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
inlinevirtual |
Get Below Objects.
localRoot | of the subgraph. |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 384 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
|
inlineinherited |
Return the number of neighbors of a node
node | the concerned node |
Definition at line 1595 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Return the associated Node index
edge | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 947 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 685 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 693 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Return the associated Edge ID
edgeObject | object which to return the node ID |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 644 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 >.
|
inlinevirtualinherited |
Return the associated Node index
edgeObject | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 787 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 795 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
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 1485 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1132 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1137 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlineprivateinherited |
Get incoming / outgoing edges according to the enum type
Definition at line 443 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 701 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inline |
Definition at line 229 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeIndex().
|
pure virtualinherited |
|
inlinevirtual |
Return the father of an edge
edge | the concerned edge |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 224 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeFromGraphid().
|
inline |
Definition at line 160 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getFathers(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeIndexes(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
|
pure virtualinherited |
|
inlinevirtual |
Return the fathers of a node
node | the concerned node |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 155 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getFathers().
|
inlineinherited |
Definition at line 356 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 351 of file AssociationGraphImplObserver.h.
|
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 1198 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1203 of file AssociationGraphImplObserver.h.
|
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 1181 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1186 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
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 1218 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtual |
Get the leaves of a DAG under a peculiar node.
node | the starting node |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 260 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
|
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 1109 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1121 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlineprivateinherited |
Get incoming / outgoing neighbors according to the enum type
Definition at line 420 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Return the associated Node index
node | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 937 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Transforms an (a list of) id(s) into an (a list of) object(s)
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 656 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Transforms an (a list of) id(s) into an (a list of) object(s)
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 663 of file AssociationGraphImplObserver.h.
|
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 >.
|
pure virtualinherited |
|
inlinevirtualinherited |
Return the associated Node ID
nodeObject | object which to return the node ID |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 630 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 >.
|
inlinevirtualinherited |
Return the associated Node index
nodeObject | object which to return the node index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 764 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 773 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlineinherited |
Get nodes located at the extremities of an edge
edge | an edge |
Definition at line 1473 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 670 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlineinherited |
Return the number of defined edges, ie edges that have a corresponding object in this GraphObserver
Definition at line 1567 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Return the number of fathers
node | the concerned node |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 239 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
inlineinherited |
Return the number of defined leaves, ie leaves that have a corresponding object in this GraphObserver
Definition at line 1578 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Return the number of defined nodes, ie nodes that have a corresponding object in this GraphObserver
Definition at line 1557 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Return the number of sons
node | the concerned node |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 249 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
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 1165 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1170 of file AssociationGraphImplObserver.h.
|
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 1149 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1154 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 728 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 733 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inline |
Definition at line 213 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeFromGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeIndex().
|
inlinevirtual |
Return the son of an edge
edge | the concerned edge |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 208 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeFromGraphid().
|
inline |
Definition at line 197 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeIndexes(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid(), and bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getSons().
|
pure virtualinherited |
|
inlinevirtual |
Return the sons of a node
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 192 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getSons().
|
inlinevirtualinherited |
Return if has Edge matching EdgeIndex
edge | EdgeIndex index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 927 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlineinherited |
Definition at line 373 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 754 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inline |
|
pure virtualinherited |
|
inlinevirtual |
Has the node a father?
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 178 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
inlinevirtualinherited |
Return if has Node matching NodeIndex
node | NodeIndex index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 918 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlineinherited |
Definition at line 366 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
return if the object has an index.
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 749 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 >.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1427 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 1432 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1091 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1096 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlineinherited |
Definition at line 1462 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Is the node a leaf?
Definition at line 1457 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Is the DAG rooted? Ie with a unique node with no father.
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 144 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph().
|
inlinevirtual |
Is the graph a DAG? A DAG must be acyclic and with no isolated node.
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 135 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph().
|
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 506 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlineinherited |
Definition at line 383 of file AssociationGraphImplObserver.h.
|
inline |
= Operator
dAGraphObserver | the DAGraphObserver we want to copy the values |
Definition at line 110 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=().
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1413 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 1418 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1076 of file AssociationGraphImplObserver.h.
|
inlinevirtualinherited |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1081 of file AssociationGraphImplObserver.h.
|
pure virtualinherited |
|
pure virtualinherited |
|
inlineinherited |
Definition at line 971 of file AssociationGraphImplObserver.h.
|
inlineinherited |
Definition at line 979 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Remove a father of a node
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 278 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
inlinevirtual |
Remove the fathers of a node
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 269 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
|
inlinevirtual |
Remove a son of a node
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 295 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
inlinevirtual |
Remove the sons of a node
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 287 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodesFromGraphid().
|
inlinevirtual |
Sets the root and make the DAG directed from root to leaves.
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 170 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().
|
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 834 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 1496 of file AssociationGraphImplObserver.h.
|
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 >.
|
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 810 of file AssociationGraphImplObserver.h.
|
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 >.
|
inlineinherited |
set the root (but no checking, to be used at first construction)
Definition at line 720 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 367 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outgoingNeighborNodesIterator().
|
inlinevirtual |
Implements bpp::AssociationDAGraphObserver< N, E >.
Definition at line 372 of file AssociationDAGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outgoingNeighborNodesIterator().
|
inlinevirtualinherited |
Deletes the link between two existing nodes in the graph.
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 533 of file AssociationGraphImplObserver.h.
|
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 >.
|
privateinherited |
Can find an Edge with the corresponding object.
Definition at line 109 of file AssociationGraphImplObserver.h.
|
privateinherited |
Can find an Edge index with the corresponding object.
Definition at line 139 of file AssociationGraphImplObserver.h.
|
privateinherited |
List of edges, stored at the same ID than the corresponding edges in the observed graph.
Definition at line 99 of file AssociationGraphImplObserver.h.
|
privateinherited |
Registration with Graph Ids. List of nodes, stored at the same ID than the corresponding nodes in the observed graph.
Definition at line 93 of file AssociationGraphImplObserver.h.
|
privateinherited |
List of edges, stored at a given index.
Definition at line 129 of file AssociationGraphImplObserver.h.
|
privateinherited |
Registration with own Ids (named as index). List of nodes, stored at a given index.
Definition at line 124 of file AssociationGraphImplObserver.h.
|
privateinherited |
Can find a Node with the corresponding object.
Definition at line 104 of file AssociationGraphImplObserver.h.
|
privateinherited |
Can find a Node index with the corresponding object.
Definition at line 134 of file AssociationGraphImplObserver.h.
|
protectedinherited |
The observed Graph. Anytime this graph is observed, the current object will be warned to take changes into account.
Definition at line 80 of file AssociationGraphImplObserver.h.