bpp-core3
3.0.0
|
#include <Bpp/Graph/AssociationGraphImplObserver.h>
Classes | |
class | EdgeIteratorClass |
class | NodeIteratorClass |
Public Types | |
typedef AssociationGraphObserver< N, E >::NodeIndex | NodeIndex |
typedef AssociationGraphObserver< N, E >::EdgeIndex | EdgeIndex |
typedef Graph::NodeId | NodeGraphid |
typedef Graph::EdgeId | EdgeGraphid |
using | Eref = std::shared_ptr< E > |
using | Nref = std::shared_ptr< N > |
Public Member Functions | |
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 |
Object Indexation | |
Get or set indexes to nodes and edges | |
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) |
bool | hasNode (NodeIndex node) const |
bool | hasEdge (EdgeIndex edge) const |
Nref | getNode (NodeIndex node) const |
Eref | getEdge (EdgeIndex edge) 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) |
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< GraphImpl > | subjectGraph_ |
enum | neighborType { INCOMING , OUTGOING , BOTH } |
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_ |
AssociationGraphImplObserver (bool directed=false) | |
AssociationGraphImplObserver (std::shared_ptr< GraphImpl > subjectGraph=00) | |
Constructor. More... | |
template<class N2 , class E2 > | |
AssociationGraphImplObserver (AssociationGraphImplObserver< N2, E2, GraphImpl > const &graphObserver) | |
AssociationGraphImplObserver (AssociationGraphImplObserver< N, E, GraphImpl > const &graphObserver) | |
AssociationGraphImplObserver< N, E, GraphImpl > & | operator= (bpp::AssociationGraphImplObserver< N, E, GraphImpl > const &graphObserver) |
~AssociationGraphImplObserver () | |
AssociationGraphImplObserver< N, E, GraphImpl > * | clone () const |
const std::shared_ptr< GraphImpl > | getGraph () const |
std::shared_ptr< GraphImpl > | 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 |
std::vector< Nref > | getNeighbors_ (const Nref nodeObject, neighborType type) const |
std::vector< Eref > | getEdges_ (const Nref nodeObject, neighborType type) const |
General Info | |
template<typename N2 , typename E2 , typename G2 > | |
class | AssociationGraphImplObserver |
size_t | getNumberOfNodes () const |
size_t | getNumberOfEdges () const |
size_t | getNumberOfLeaves () const |
size_t | getDegree (const Nref node) const |
Definition at line 62 of file AssociationGraphImplObserver.h.
typedef Graph::EdgeId bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EdgeGraphid |
Definition at line 69 of file AssociationGraphImplObserver.h.
typedef AssociationGraphObserver<N, E>::EdgeIndex bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EdgeIndex |
Definition at line 66 of file AssociationGraphImplObserver.h.
using bpp::AssociationGraphImplObserver< N, E, GraphImpl >::Eref = std::shared_ptr<E> |
Definition at line 71 of file AssociationGraphImplObserver.h.
typedef Graph::NodeId bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NodeGraphid |
Definition at line 68 of file AssociationGraphImplObserver.h.
typedef AssociationGraphObserver<N, E>::NodeIndex bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NodeIndex |
Definition at line 65 of file AssociationGraphImplObserver.h.
using bpp::AssociationGraphImplObserver< N, E, GraphImpl >::Nref = std::shared_ptr<N> |
Definition at line 72 of file AssociationGraphImplObserver.h.
|
private |
defines a type of neighbors : incoming and/or outgoing
Enumerator | |
---|---|
INCOMING | |
OUTGOING | |
BOTH |
Definition at line 415 of file AssociationGraphImplObserver.h.
|
inline |
Constructor
directed | is the graph directed |
Definition at line 151 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph().
|
inline |
Constructor.
subjectGraph | the graph which is observed. If == 00, a new Graph is built. |
Definition at line 174 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph().
|
inline |
Copy Constructor
graphObserver | the graphObserver to be copied |
Definition at line 194 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
|
inline |
Definition at line 240 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
|
inline |
Destructor
Definition at line 341 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph().
|
inline |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_.
|
inline |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1399 of file AssociationGraphImplObserver.h.
|
inline |
Definition at line 1404 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1061 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1066 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeLinking().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode().
|
inlinevirtual |
clone function
Implements bpp::Clonable.
Definition at line 349 of file AssociationGraphImplObserver.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.
|
inlinevirtual |
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.
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::AssociationGraphImplObserver< N, E, GraphImpl >::createNode().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::dissociateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 617 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deleteNode().
|
inline |
Definition at line 397 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdgeIndex(), and bpp::TextTools::toString().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::addEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeIndex().
|
inlinevirtual |
Get all the defined branches of a graph,
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1441 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
|
inline |
Return the number of neighbors of a node
node | the concerned node |
Definition at line 1595 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeLinking(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeLinking().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 685 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeLinking().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 693 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, and bpp::TextTools::toString().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodes().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllEdgesIndexes(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 795 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges().
|
inlinevirtual |
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.
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().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1137 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode().
|
inlineprivate |
Get incoming / outgoing edges according to the enum type
Definition at line 443 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::BOTH, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::INCOMING, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::OUTGOING.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 701 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_.
Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getBelowEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges_(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::getSubtreeEdges().
|
inline |
Definition at line 356 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::subjectGraph_.
|
inline |
Definition at line 351 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::subjectGraph_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deleteNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllInnerNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllInnerNodesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllLeaves(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllLeavesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getDegree(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeLinking(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges_(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getLeavesFromNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors_(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRoot(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRootIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::isLeaf(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeLinking(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setRoot(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::unlink(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::~AssociationGraphImplObserver().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1203 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1186 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndexes().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndexes().
|
inlineprivate |
Get incoming / outgoing neighbors according to the enum type
Definition at line 420 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::BOTH, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::INCOMING, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::OUTGOING.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::isLeaf().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRoot(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRootIndex().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_, and bpp::TextTools::toString().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deleteNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getDegree(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeLinking(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdges_(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getLeavesFromNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors_(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::isLeaf(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeLinking(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setRoot().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllInnerNodesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllLeavesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllNodesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRootIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 773 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors().
|
inline |
Get nodes located at the extremities of an edge
edge | an edge |
Definition at line 1473 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeFromGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 670 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getIncomingNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getLeavesFromNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNeighbors_(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors().
|
inline |
Return the number of defined edges, ie edges that have a corresponding object in this GraphObserver
Definition at line 1567 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_.
|
inline |
Return the number of defined leaves, ie leaves that have a corresponding object in this GraphObserver
Definition at line 1578 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::isLeaf().
|
inline |
Return the number of defined nodes, ie nodes that have a corresponding object in this GraphObserver
Definition at line 1557 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1170 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingEdges().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1154 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndexes(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getOutgoingNeighbors().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 728 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeFromGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getRootIndex().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 733 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 if has Edge matching EdgeIndex
edge | EdgeIndex index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 927 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_.
|
inline |
Definition at line 373 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeIndex().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 754 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
Return if has Node matching NodeIndex
node | NodeIndex index |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 918 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_.
|
inline |
Definition at line 366 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::unlink().
|
inlinevirtual |
return if the object has an index.
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 749 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1427 of file AssociationGraphImplObserver.h.
|
inline |
Definition at line 1432 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1091 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1096 of file AssociationGraphImplObserver.h.
|
inline |
|
inline |
Is the node a leaf?
Definition at line 1457 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNumberOfLeaves().
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode().
|
inline |
Definition at line 383 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_, and bpp::TextTools::toString().
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::addNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::createNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::unlink().
|
inline |
= Operator
graphObserver | the graphObserver we want to copy the values |
Definition at line 291 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::graphidToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_, and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::operator=(), and bpp::AssociationTreeGraphImplObserver< N, E, TreeGraphImpl >::operator=().
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1413 of file AssociationGraphImplObserver.h.
|
inline |
Definition at line 1418 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1076 of file AssociationGraphImplObserver.h.
|
inlinevirtual |
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 1081 of file AssociationGraphImplObserver.h.
|
inline |
Definition at line 971 of file AssociationGraphImplObserver.h.
|
inline |
Definition at line 979 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToGraphid_, 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(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNodeIndex(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
|
inlinevirtual |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::EToIndex_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToE_.
|
inlinevirtual |
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.
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 |
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.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::indexToN_, bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToIndex_.
|
inline |
set the root (but no checking, to be used at first construction)
Definition at line 720 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid().
|
inlinevirtual |
Deletes the link between two existing nodes in the graph.
Implements bpp::AssociationGraphObserver< N, E >.
Definition at line 533 of file AssociationGraphImplObserver.h.
References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::NToGraphid_.
|
friend |
Definition at line 1602 of file AssociationGraphImplObserver.h.
|
private |
Can find an Edge with the corresponding object.
Definition at line 109 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deletedEdgesUpdate(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::dissociateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::edgeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNumberOfEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot().
|
private |
Can find an Edge index with the corresponding object.
Definition at line 139 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::addEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeIndex().
|
private |
List of edges, stored at the same ID than the corresponding edges in the observed graph.
Definition at line 99 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deletedEdgesUpdate(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::dissociateEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllEdges(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllEdgesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgeFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdgesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=().
|
private |
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.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deletedNodesUpdate(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::dissociateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllInnerNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllInnerNodesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllLeaves(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllLeavesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getAllNodesIndexes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodesFromGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNumberOfLeaves(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=().
|
private |
List of edges, stored at a given index.
Definition at line 129 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::addEdgeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasEdge(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setEdgeIndex().
|
private |
Registration with own Ids (named as index). List of nodes, stored at a given index.
Definition at line 124 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::addNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setNodeIndex().
|
private |
Can find a Node with the corresponding object.
Definition at line 104 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::associateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::deletedNodesUpdate(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::dissociateNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeGraphid(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNumberOfNodes(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNode(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::link(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::nodeToString(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::outputToDot(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::unlink().
|
private |
Can find a Node index with the corresponding object.
Definition at line 134 of file AssociationGraphImplObserver.h.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::addNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::AssociationGraphImplObserver(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::hasNodeIndex(), bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=(), and bpp::AssociationGraphImplObserver< N, E, GraphImpl >::setNodeIndex().
|
protected |
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.
Referenced by bpp::AssociationGraphImplObserver< N, E, GraphImpl >::getGraph().