bpp-core3  3.0.0
bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl > Class Template Referenceabstract

#include <Bpp/Graph/AssociationDAGraphImplObserver.h>

+ Inheritance diagram for bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >:
+ Collaboration diagram for bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >:

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< NodeIndexgetFathers (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< NodeIndexgetSons (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 >::NodeIteratorfathersIterator (std::shared_ptr< N > node)
 
std::unique_ptr< typename AssociationDAGraphObserver< N, E >::NodeIteratorfathersIterator (std::shared_ptr< N > node) const
 
std::unique_ptr< typename AssociationDAGraphObserver< N, E >::NodeIteratorsonsIterator (std::shared_ptr< N > node)
 
std::unique_ptr< typename AssociationDAGraphObserver< N, E >::NodeIteratorsonsIterator (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< NodeIndexgetFathers (const NodeIndex node) const =0
 
virtual bool hasFather (const NodeIndex node) const =0
 
virtual std::vector< NodeIndexgetSons (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

Associate or dissociate N and E objects to pre-existing Graph Nodes and Graph Edges

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< NodeIndexgetNodeIndexes (std::vector< std::shared_ptr< N >> nodeObjects) const =0
 
virtual EdgeIndex getEdgeIndex (const std::shared_ptr< E > edgeObject) const =0
 
virtual std::vector< EdgeIndexgetEdgeIndexes (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< NodeIteratorallNodesIterator ()=0
 
virtual std::unique_ptr< NodeIteratorallNodesIterator () const =0
 
virtual std::unique_ptr< NodeIteratoroutgoingNeighborNodesIterator (std::shared_ptr< N > node)=0
 
virtual std::unique_ptr< NodeIteratoroutgoingNeighborNodesIterator (std::shared_ptr< N > node) const =0
 
virtual std::unique_ptr< NodeIteratorincomingNeighborNodesIterator (std::shared_ptr< N > node)=0
 
virtual std::unique_ptr< NodeIteratorincomingNeighborNodesIterator (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< NodeIndexgetNeighbors (NodeIndex node) const =0
 
virtual std::vector< std::shared_ptr< E > > getEdges (const std::shared_ptr< N > node) const =0
 
virtual std::vector< EdgeIndexgetEdges (NodeIndex node) const =0
 
virtual std::vector< std::shared_ptr< N > > getOutgoingNeighbors (const std::shared_ptr< N > node) const =0
 
virtual std::vector< NodeIndexgetOutgoingNeighbors (NodeIndex node) const =0
 
virtual std::vector< std::shared_ptr< E > > getOutgoingEdges (const std::shared_ptr< N > node) const =0
 
virtual std::vector< EdgeIndexgetOutgoingEdges (NodeIndex node) const =0
 
virtual std::vector< std::shared_ptr< N > > getIncomingNeighbors (const std::shared_ptr< N > node) const =0
 
virtual std::vector< NodeIndexgetIncomingNeighbors (NodeIndex node) const =0
 
virtual std::vector< std::shared_ptr< E > > getIncomingEdges (const std::shared_ptr< N > node) const =0
 
virtual std::vector< EdgeIndexgetIncomingEdges (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< NodeIndexgetAllLeavesIndexes () const =0
 
virtual std::vector< std::shared_ptr< N > > getAllInnerNodes () const =0
 
virtual std::vector< NodeIndexgetAllInnerNodesIndexes () const =0
 
virtual std::vector< std::shared_ptr< N > > getAllNodes () const =0
 
virtual std::vector< NodeIndexgetAllNodesIndexes () const =0
 
Iterator interface on Edges
virtual std::unique_ptr< EdgeIteratorallEdgesIterator ()=0
 
virtual std::unique_ptr< EdgeIteratoroutgoingEdgesIterator (std::shared_ptr< N > node)=0
 
virtual std::unique_ptr< EdgeIteratorincomingEdgesIterator (std::shared_ptr< N > node)=0
 
virtual std::vector< std::shared_ptr< E > > getAllEdges () const =0
 
virtual std::vector< EdgeIndexgetAllEdgesIndexes () const =0
 
virtual std::shared_ptr< E > getEdgeLinking (std::shared_ptr< N > nodeA, std::shared_ptr< N > nodeB) const =0
 
virtual void setEdgeLinking (std::shared_ptr< N > nodeA, std::shared_ptr< N > nodeB, std::shared_ptr< E > edge)=0
 
Function called by the subjectGraph

Methods called by the subject graph to make this observer so fit the subject graph

virtual void deletedEdgesUpdate (const std::vector< unsigned int > &edgesToDelete)=0
 
virtual void deletedNodesUpdate (const std::vector< unsigned int > &nodesToDelete)=0
 
const std::shared_ptr< DAGraphImplgetGraph () const
 
std::shared_ptr< DAGraphImplgetGraph ()
 
bool hasNode (Nref nodeObject) const
 
bool hasEdge (Eref edgeObject) const
 
std::string nodeToString (const Nref nodeObject) const
 
std::string edgeToString (const Eref edgeObject) const
 
Object Indexation

Get or set indexes to nodes and edges

bool hasNode (NodeIndex node) const
 
bool hasEdge (EdgeIndex edge) const
 
bool hasNodeIndex (const Nref nodeObject) const
 return if the object has an index. More...
 
bool hasEdgeIndex (const Eref edgeObject) const
 
NodeIndex getNodeIndex (const Nref nodeObject) const
 
std::vector< NodeIndexgetNodeIndexes (std::vector< Nref > nodes) const
 
EdgeIndex getEdgeIndex (const Eref edgeObject) const
 
std::vector< EdgeIndexgetEdgeIndexes (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

Associate or dissociate N and E objects to pre-existing Graph Nodes and Graph Edges

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< NrefgetNodesFromGraphid (std::vector< NodeGraphid > nodes) const
 
Eref getEdgeFromGraphid (EdgeGraphid edge)
 
const Eref getEdgeFromGraphid (EdgeGraphid edge) const
 
std::vector< ErefgetEdgesFromGraphid (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 >::NodeIteratorallNodesIterator ()
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIteratorallNodesIterator () const
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIteratoroutgoingNeighborNodesIterator (Nref node)
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIteratoroutgoingNeighborNodesIterator (Nref node) const
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIteratorincomingNeighborNodesIterator (Nref node)
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::NodeIteratorincomingNeighborNodesIterator (Nref node) const
 
std::vector< NrefgetNeighbors (const Nref node) const
 
std::vector< NodeIndexgetNeighbors (NodeIndex node) const
 
std::vector< ErefgetEdges (const Nref node) const
 
std::vector< EdgeIndexgetEdges (NodeIndex node) const
 
std::vector< NrefgetOutgoingNeighbors (const Nref node) const
 
std::vector< NodeIndexgetOutgoingNeighbors (NodeIndex node) const
 
std::vector< ErefgetOutgoingEdges (const Nref node) const
 
std::vector< EdgeIndexgetOutgoingEdges (NodeIndex node) const
 
std::vector< NrefgetIncomingNeighbors (const Nref node) const
 
std::vector< NodeIndexgetIncomingNeighbors (NodeIndex node) const
 
std::vector< ErefgetIncomingEdges (const Nref node) const
 
std::vector< EdgeIndexgetIncomingEdges (NodeIndex node) const
 
std::vector< NrefgetLeavesFromNode (Nref node, unsigned int maxDepth) const
 
std::vector< NrefgetAllLeaves () const
 
std::vector< NodeIndexgetAllLeavesIndexes () const
 
std::vector< NrefgetAllInnerNodes () const
 
std::vector< NodeIndexgetAllInnerNodesIndexes () const
 
std::vector< NrefgetAllNodes () const
 
std::vector< NodeIndexgetAllNodesIndexes () const
 
std::vector< EdgeIndexgetAllEdgesIndexes () const
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIteratorallEdgesIterator ()
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIteratorallEdgesIterator () const
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIteratoroutgoingEdgesIterator (Nref node)
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIteratoroutgoingEdgesIterator (Nref node) const
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIteratorincomingEdgesIterator (Nref node)
 
std::unique_ptr< typename AssociationGraphObserver< N, E >::EdgeIteratorincomingEdgesIterator (Nref node) const
 
std::vector< ErefgetAllEdges () const
 
bool isLeaf (const Nref node) const
 Is the node a leaf? More...
 
bool isLeaf (const NodeIndex nodeid) const
 
std::pair< Nref, NrefgetNodes (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< DAGraphImplsubjectGraph_
 

Detailed Description

template<class N, class E, class DAGraphImpl>
class bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >

Definition at line 21 of file AssociationDAGraphImplObserver.h.

Member Typedef Documentation

◆ EdgeGraphid

template<class N, class E, class DAGraphImpl>
typedef Graph::EdgeId bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::EdgeGraphid

Definition at line 30 of file AssociationDAGraphImplObserver.h.

◆ EdgeIndex

template<class N, class E, class DAGraphImpl>
typedef AssociationGraphObserver<N, E>::EdgeIndex bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::EdgeIndex

Definition at line 27 of file AssociationDAGraphImplObserver.h.

◆ EdgeIterator

template<class N , class E >
typedef AssociationGraphObserver<N, E>::EdgeIterator bpp::AssociationDAGraphObserver< N, E >::EdgeIterator
inherited

Definition at line 190 of file AssociationDAGraphObserver.h.

◆ Eref

using bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::Eref = std::shared_ptr<E>
inherited

Definition at line 35 of file AssociationGraphImplObserver.h.

◆ NodeGraphid

template<class N, class E, class DAGraphImpl>
typedef Graph::NodeId bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::NodeGraphid

Definition at line 29 of file AssociationDAGraphImplObserver.h.

◆ NodeIndex

template<class N, class E, class DAGraphImpl>
typedef AssociationGraphObserver<N, E>::NodeIndex bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::NodeIndex

Definition at line 26 of file AssociationDAGraphImplObserver.h.

◆ NodeIterator

template<class N , class E >
typedef AssociationGraphObserver<N, E>::NodeIterator bpp::AssociationDAGraphObserver< N, E >::NodeIterator
inherited

Iterators

Definition at line 189 of file AssociationDAGraphObserver.h.

◆ Nref

using bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::Nref = std::shared_ptr<N>
inherited

Definition at line 36 of file AssociationGraphImplObserver.h.

Constructor & Destructor Documentation

◆ AssociationDAGraphImplObserver() [1/4]

template<class N, class E, class DAGraphImpl>
bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::AssociationDAGraphImplObserver ( )
inline

Constructor

Definition at line 37 of file AssociationDAGraphImplObserver.h.

◆ AssociationDAGraphImplObserver() [2/4]

template<class N, class E, class DAGraphImpl>
bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::AssociationDAGraphImplObserver ( std::shared_ptr< DAGraphImpl subjectDAGraph)
inline

Constructor

Parameters
subjectDAGraphthe DAGraph which is observed

Definition at line 46 of file AssociationDAGraphImplObserver.h.

◆ AssociationDAGraphImplObserver() [3/4]

template<class N, class E, class DAGraphImpl>
bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::AssociationDAGraphImplObserver ( bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl > const &  dAGraphObserver)
inline

Copy Constructor

Parameters
dAGraphObserverthe DAGraphObserver to be copied

Definition at line 55 of file AssociationDAGraphImplObserver.h.

◆ AssociationDAGraphImplObserver() [4/4]

template<class N, class E, class DAGraphImpl>
template<class N2 , class E2 >
bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::AssociationDAGraphImplObserver ( bpp::AssociationDAGraphImplObserver< N2, E2, DAGraphImpl > const &  dAGraphObserver)
inline

Copy Constructor

Parameters
dAGraphObserverthe DAGraphObserver to be copied

Definition at line 66 of file AssociationDAGraphImplObserver.h.

◆ ~AssociationDAGraphImplObserver()

template<class N, class E, class DAGraphImpl>
bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::~AssociationDAGraphImplObserver ( )
inline

Destructor

Definition at line 83 of file AssociationDAGraphImplObserver.h.

Member Function Documentation

◆ addEdgeIndex()

EdgeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::addEdgeIndex ( const Eref  edgeObject)
inlineinherited

Add an index associated to an edge

Parameters
edgeObjectobject to which one want to set the index
Returns
the given index

Definition at line 852 of file AssociationGraphImplObserver.h.

◆ addFather()

template<class N, class E, class DAGraphImpl>
void bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::addFather ( const std::shared_ptr< N >  nodeObject,
const std::shared_ptr< N >  fatherNodeObject,
const std::shared_ptr< E >  edgeObject = 0 
)
inlinevirtual

Add a father to a node

Parameters
nodeObjectthe concerned node
fatherNodeObjectthe node to be added as a father to the node
edgeObjectthe optional edge between the nodes (default = 00)

Implements bpp::AssociationDAGraphObserver< N, E >.

Definition at line 271 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().

◆ addNodeIndex()

NodeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::addNodeIndex ( const Nref  nodeObject)
inlineinherited

Set an new index associated to a node

Parameters
nodeObjectobject to which one want to set the index
Returns
the given index

Definition at line 821 of file AssociationGraphImplObserver.h.

◆ addSon()

template<class N, class E, class DAGraphImpl>
void bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::addSon ( const std::shared_ptr< N >  nodeObject,
const std::shared_ptr< N >  sonNodeObject,
const std::shared_ptr< E >  edgeObject = 0 
)
inlinevirtual

Add a son to a node

Parameters
nodeObjectthe concerned node
sonNodeObjectthe node to be added as a son to the father
edgeObjectthe optional edge between the nodes (default = 00)

Implements bpp::AssociationDAGraphObserver< N, E >.

Definition at line 293 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().

◆ allEdgesIterator() [1/3]

◆ allEdgesIterator() [2/3]

std::unique_ptr<typename AssociationGraphObserver<N, E>::EdgeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::allEdgesIterator ( )
inlinevirtualinherited

◆ allEdgesIterator() [3/3]

std::unique_ptr<typename AssociationGraphObserver<N, E>::EdgeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::allEdgesIterator ( ) const
inlineinherited

Definition at line 1368 of file AssociationGraphImplObserver.h.

◆ allNodesIterator() [1/4]

◆ allNodesIterator() [2/4]

template<class N, class E>
virtual std::unique_ptr<NodeIterator> bpp::AssociationGraphObserver< N, E >::allNodesIterator ( ) const
pure virtualinherited

◆ allNodesIterator() [3/4]

std::unique_ptr<typename AssociationGraphObserver<N, E>::NodeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::allNodesIterator ( )
inlinevirtualinherited

◆ allNodesIterator() [4/4]

std::unique_ptr<typename AssociationGraphObserver<N, E>::NodeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::allNodesIterator ( ) const
inlinevirtualinherited

◆ associateEdge() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::associateEdge ( std::shared_ptr< E >  edgeObject,
EdgeGraphid  edge 
)
pure virtualinherited

Associate a E object to an edge in the graph.

Parameters
edgeObjectobject to associate
edgeexisting edge to be associated

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ associateEdge() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::associateEdge ( Eref  edgeObject,
EdgeGraphid  graphEdge 
)
inlinevirtualinherited

Associate a E object to an edge in the graph.

Parameters
edgeObjectobject to associate
graphEdgeexisting edge to be associated

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 554 of file AssociationGraphImplObserver.h.

◆ associateNode() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::associateNode ( std::shared_ptr< N >  nodeObject,
NodeGraphid  node 
)
pure virtualinherited

Associate a N object to a node in the graph.

Parameters
nodeObjectobject to associate
nodeexisting node to be associated

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ associateNode() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::associateNode ( Nref  nodeObject,
NodeGraphid  graphNode 
)
inlinevirtualinherited

Associate a N object to a node in the graph.

Parameters
nodeObjectobject to associate
graphNodeexisting node to be associated

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 534 of file AssociationGraphImplObserver.h.

◆ clone()

template<class N, class E, class DAGraphImpl>
AssociationDAGraphImplObserver<N, E, DAGraphImpl>* bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::clone ( ) const
inlinevirtual

clone function

Implements bpp::Clonable.

Definition at line 89 of file AssociationDAGraphImplObserver.h.

◆ copy() [1/5]

template<class N, class E>
template<class A , class B >
static B* bpp::AssociationGraphObserver< N, E >::copy ( const A &  a,
typename std::enable_if< !std::is_base_of< B, A >::value &&!std::is_abstract< B >::value, B *>::type *  = 0 
)
inlinestaticinherited

Specific copy of A and B objects, if clonable or not.

Definition at line 45 of file AssociationGraphObserver.h.

◆ copy() [2/5]

template<class N, class E>
template<class A , class B >
static B* bpp::AssociationGraphObserver< N, E >::copy ( const A &  a,
typename std::enable_if< !std::is_base_of< B, A >::value &&std::is_abstract< B >::value, B *>::type *  = 0 
)
inlinestaticinherited

Definition at line 51 of file AssociationGraphObserver.h.

◆ copy() [3/5]

template<class N, class E>
template<class A , class B >
static B* bpp::AssociationGraphObserver< N, E >::copy ( const A &  a,
typename std::enable_if< std::is_base_of< B, A >::value &&!std::is_abstract< A >::value, B *>::type *  = 0 
)
inlinestaticinherited

Definition at line 58 of file AssociationGraphObserver.h.

◆ copy() [4/5]

template<class N, class E>
template<class A , class B >
static B* bpp::AssociationGraphObserver< N, E >::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 
)
inlinestaticinherited

Definition at line 64 of file AssociationGraphObserver.h.

◆ copy() [5/5]

template<class N, class E>
template<class A , class B >
static B* bpp::AssociationGraphObserver< N, E >::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 
)
inlinestaticinherited

Definition at line 70 of file AssociationGraphObserver.h.

References bpp::AssociationGraphObserver< N, E >::associateEdge(), bpp::AssociationGraphObserver< N, E >::associateNode(), bpp::AssociationGraphObserver< N, E >::createNode(), bpp::AssociationGraphObserver< N, E >::deleteNode(), bpp::AssociationGraphObserver< N, E >::dissociateEdge(), bpp::AssociationGraphObserver< N, E >::dissociateNode(), bpp::AssociationGraphObserver< N, E >::getEdge(), bpp::AssociationGraphObserver< N, E >::getEdgeFromGraphid(), bpp::AssociationGraphObserver< N, E >::getEdgeGraphid(), bpp::AssociationGraphObserver< N, E >::getEdgeIndex(), bpp::AssociationGraphObserver< N, E >::getEdgeIndexes(), bpp::AssociationGraphObserver< N, E >::getEdgesFromGraphid(), bpp::AssociationGraphObserver< N, E >::getNode(), bpp::AssociationGraphObserver< N, E >::getNodeFromGraphid(), bpp::AssociationGraphObserver< N, E >::getNodeGraphid(), bpp::AssociationGraphObserver< N, E >::getNodeIndex(), bpp::AssociationGraphObserver< N, E >::getNodeIndexes(), bpp::AssociationGraphObserver< N, E >::getNodesFromGraphid(), bpp::AssociationGraphObserver< N, E >::getRoot(), bpp::AssociationGraphObserver< N, E >::getRootIndex(), bpp::AssociationGraphObserver< N, E >::hasEdge(), bpp::AssociationGraphObserver< N, E >::hasEdgeIndex(), bpp::AssociationGraphObserver< N, E >::hasNode(), bpp::AssociationGraphObserver< N, E >::hasNodeIndex(), bpp::AssociationGraphObserver< N, E >::link(), bpp::AssociationGraphObserver< N, E >::setEdgeIndex(), bpp::AssociationGraphObserver< N, E >::setNodeIndex(), and bpp::AssociationGraphObserver< N, E >::unlink().

◆ createNode() [1/4]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::createNode ( std::shared_ptr< N >  newNodeObject)
pure virtualinherited

Creates an orphaned node from a NodeClass object.

Parameters
newNodeObjectthe N object associated to the node in the graph.

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ createNode() [2/4]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::createNode ( std::shared_ptr< N >  objectOriginNode,
std::shared_ptr< N >  newNodeObject,
std::shared_ptr< E >  newEdgeObject = 00 
)
pure virtualinherited

Creates an node linked to an existing node. Order of parameters match the link method.

Parameters
newNodeObjectthe N object associated to the node in the graph.
objectOriginNodeexisting node. In a directed graph: origin -> newNode.
newEdgeObjectoptional edge between nodes (default = 00)

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

◆ createNode() [3/4]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::createNode ( Nref  nodeObject)
inlinevirtualinherited

Creates an orphaned node from a NodeClass object.

Parameters
nodeObjectthe N object associated to the node in the graph.

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 438 of file AssociationGraphImplObserver.h.

◆ createNode() [4/4]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::createNode ( Nref  objectOriginNode,
Nref  newNodeObject,
Eref  newEdgeObject = 00 
)
inlinevirtualinherited

Creates an node linked to an existing node. Order of parameters match the link method.

Parameters
objectOriginNodeexisting node. In a directed graph: origin -> newNode.
newNodeObjectthe N object associated to the node in the graph.
newEdgeObjectthe optional edge between the nodes (default = 00)

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 455 of file AssociationGraphImplObserver.h.

◆ deletedEdgesUpdate() [1/2]

virtual void bpp::GraphObserver::deletedEdgesUpdate ( const std::vector< unsigned int > &  edgesToDelete)
pure virtualinherited

Delete unused object edges, since they have been deleted in the graph

Parameters
edgesToDeletea vector of Edges to delete

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

◆ deletedEdgesUpdate() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::deletedEdgesUpdate ( const std::vector< unsigned int > &  edgesToDelete)
inlinevirtualinherited

Delete unused object edges, since they have been deleted in the graph

Parameters
edgesToDeletea vector of Edges to delete

Implements bpp::GraphObserver.

Definition at line 1477 of file AssociationGraphImplObserver.h.

◆ deletedNodesUpdate() [1/2]

virtual void bpp::GraphObserver::deletedNodesUpdate ( const std::vector< unsigned int > &  nodesToDelete)
pure virtualinherited

Delete unused object nodes, since they have been deleted in the graph

Parameters
nodesToDeletea vector of N to delete

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

◆ deletedNodesUpdate() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::deletedNodesUpdate ( const std::vector< unsigned int > &  nodesToDelete)
inlinevirtualinherited

Delete unused object nodes, since they have been deleted in the graph

Parameters
nodesToDeletea vector of N to delete

Implements bpp::GraphObserver.

Definition at line 1495 of file AssociationGraphImplObserver.h.

◆ deleteNode() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::deleteNode ( std::shared_ptr< N >  nodeObject)
pure virtualinherited

◆ deleteNode() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::deleteNode ( Nref  nodeObject)
inlinevirtualinherited

Deletes a node

Parameters
nodeObjectnode to be deleted. The N node object given in argument is not deleted.

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 513 of file AssociationGraphImplObserver.h.

◆ dissociateEdge() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::dissociateEdge ( std::shared_ptr< E >  edgeObject)
pure virtualinherited

◆ dissociateEdge() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::dissociateEdge ( Eref  edgeObject)
inlinevirtualinherited

◆ dissociateNode() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::dissociateNode ( std::shared_ptr< N >  nodeObject)
pure virtualinherited

Dissociate a N or E object to a node or an edge in the graph. Graph is not changed.

Parameters
nodeObjectobject to dissociate

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ dissociateNode() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::dissociateNode ( Nref  nodeObject)
inlinevirtualinherited

Dissociate a N or E object to a node or an edge in the graph.

Parameters
nodeObjectobject to dissociate

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 573 of file AssociationGraphImplObserver.h.

◆ edgeToString()

std::string bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::edgeToString ( const Eref  edgeObject) const
inlineinherited

Definition at line 361 of file AssociationGraphImplObserver.h.

◆ fathersIterator() [1/2]

template<class N, class E, class DAGraphImpl>
std::unique_ptr<typename AssociationDAGraphObserver<N, E>::NodeIterator> bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::fathersIterator ( std::shared_ptr< N >  node)
inlinevirtual

◆ fathersIterator() [2/2]

template<class N, class E, class DAGraphImpl>
std::unique_ptr<typename AssociationDAGraphObserver<N, E>::NodeIterator> bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::fathersIterator ( std::shared_ptr< N >  node) const
inlinevirtual

◆ getAllEdges() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<E> > bpp::AssociationGraphObserver< N, E >::getAllEdges ( ) const
pure virtualinherited

◆ getAllEdges() [2/2]

std::vector<Eref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllEdges ( ) const
inlinevirtualinherited

Get all the defined branches of a graph,

Returns
a vector containing the branchesObjects

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1405 of file AssociationGraphImplObserver.h.

◆ getAllEdgesIndexes() [1/2]

◆ getAllEdgesIndexes() [2/2]

std::vector<EdgeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllEdgesIndexes ( ) const
inlinevirtualinherited

Get indexes of all defined edges of a graph,

Returns
a vector containing the edgesObjects

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1316 of file AssociationGraphImplObserver.h.

◆ getAllInnerNodes() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getAllInnerNodes ( ) const
pure virtualinherited

◆ getAllInnerNodes() [2/2]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllInnerNodes ( ) const
inlinevirtualinherited

Get all the inner nodes of a graph, ie, nodes with degree >= 2.

Returns
a vector containing the inner nodes.

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1236 of file AssociationGraphImplObserver.h.

◆ getAllInnerNodesIndexes() [1/2]

◆ getAllInnerNodesIndexes() [2/2]

std::vector<NodeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllInnerNodesIndexes ( ) const
inlinevirtualinherited

Get the indexes of all inner nodes of a graph, ie, nodes with degree >= 2.

Returns
a vector containing the inner nodes.

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1257 of file AssociationGraphImplObserver.h.

◆ getAllLeaves() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getAllLeaves ( ) const
pure virtualinherited

◆ getAllLeaves() [2/2]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllLeaves ( ) const
inlinevirtualinherited

Get all the leaves objects of a graph, ie, nodes with only one neighbor,

Returns
a vector containing the leaves

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1193 of file AssociationGraphImplObserver.h.

◆ getAllLeavesIndexes() [1/2]

◆ getAllLeavesIndexes() [2/2]

std::vector<NodeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllLeavesIndexes ( ) const
inlinevirtualinherited

Get index of the leaves objects of a graph, ie, nodes with only one neighbor,

Returns
a vector containing the leaves

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1214 of file AssociationGraphImplObserver.h.

◆ getAllNodes() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getAllNodes ( ) const
pure virtualinherited

◆ getAllNodes() [2/2]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllNodes ( ) const
inlinevirtualinherited

Get all the defined nodes of a graph,

Returns
a vector containing the nodesObjects

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1278 of file AssociationGraphImplObserver.h.

◆ getAllNodesIndexes() [1/2]

◆ getAllNodesIndexes() [2/2]

std::vector<NodeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getAllNodesIndexes ( ) const
inlinevirtualinherited

Get indexes of all defined nodes of a graph,

Returns
a vector containing the nodesObjects

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1297 of file AssociationGraphImplObserver.h.

◆ getBelowEdges()

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<E> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getBelowEdges ( const std::shared_ptr< N >  localRoot)
inlinevirtual

◆ getBelowNodes()

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<N> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getBelowNodes ( const std::shared_ptr< N >  localRoot)
inlinevirtual

◆ getDegree()

size_t bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getDegree ( const Nref  node) const
inlineinherited

Return the number of neighbors of a node

Parameters
nodethe concerned node
Returns
the number of neighbors

Definition at line 1559 of file AssociationGraphImplObserver.h.

◆ getEdge() [1/2]

template<class N, class E>
virtual std::shared_ptr<E> bpp::AssociationGraphObserver< N, E >::getEdge ( EdgeIndex  edgeIndex) const
pure virtualinherited

Return the associated Node index

Parameters
edgeIndexthe index of the wanted edge
Returns
E, an edge object

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ getEdge() [2/2]

Eref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdge ( EdgeIndex  edge) const
inlinevirtualinherited

Return the associated Node index

Parameters
edgeobject which to return the node index
Returns
a node index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 911 of file AssociationGraphImplObserver.h.

Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getFatherOfEdge(), and bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getSon().

◆ getEdgeFromGraphid() [1/4]

◆ getEdgeFromGraphid() [2/4]

template<class N, class E>
virtual const std::shared_ptr<E> bpp::AssociationGraphObserver< N, E >::getEdgeFromGraphid ( EdgeGraphid  ) const
pure virtualinherited

◆ getEdgeFromGraphid() [3/4]

Eref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeFromGraphid ( EdgeGraphid  edge)
inlinevirtualinherited

◆ getEdgeFromGraphid() [4/4]

const Eref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeFromGraphid ( EdgeGraphid  edge) const
inlinevirtualinherited

◆ getEdgeGraphid() [1/2]

template<class N, class E>
virtual EdgeGraphid bpp::AssociationGraphObserver< N, E >::getEdgeGraphid ( const std::shared_ptr< E >  edgeObject) const
pure virtualinherited

Return the associated Node ID

Parameters
edgeObjectobject which to return the node ID
Returns
a node ID

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ getEdgeGraphid() [2/2]

◆ getEdgeIndex() [1/2]

template<class N, class E>
virtual EdgeIndex bpp::AssociationGraphObserver< N, E >::getEdgeIndex ( const std::shared_ptr< E >  edgeObject) const
pure virtualinherited

Return the associated Node index

Parameters
edgeObjectobject which to return the node index
Returns
a node index

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ getEdgeIndex() [2/2]

EdgeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeIndex ( const Eref  edgeObject) const
inlinevirtualinherited

Return the associated Node index

Parameters
edgeObjectobject which to return the node index
Returns
a node index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 751 of file AssociationGraphImplObserver.h.

◆ getEdgeIndexes() [1/2]

template<class N, class E>
virtual std::vector<EdgeIndex> bpp::AssociationGraphObserver< N, E >::getEdgeIndexes ( std::vector< std::shared_ptr< E >>  edgeObjects) const
pure virtualinherited

◆ getEdgeIndexes() [2/2]

std::vector<EdgeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeIndexes ( std::vector< Eref edges) const
inlineinherited

Definition at line 759 of file AssociationGraphImplObserver.h.

◆ getEdgeLinking() [1/2]

template<class N, class E>
virtual std::shared_ptr<E> bpp::AssociationGraphObserver< N, E >::getEdgeLinking ( std::shared_ptr< N >  nodeA,
std::shared_ptr< N >  nodeB 
) const
pure virtualinherited

Returns the Edge between two nodes nodeA -> nodeB

Parameters
nodeAsource node (if directed)
nodeBdestination node (if directed)
Returns
the edge between these two nodes

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::EdgeIterator::~EdgeIterator().

◆ getEdgeLinking() [2/2]

Eref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgeLinking ( Nref  nodeA,
Nref  nodeB 
) const
inlinevirtualinherited

Returns the Edge between two nodes nodeA -> nodeB

Parameters
nodeAsource node (if directed)
nodeBdestination node (if directed)
Returns
the edge between these two nodes, or 0 if edge does not exist

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1449 of file AssociationGraphImplObserver.h.

◆ getEdges() [1/4]

template<class N, class E>
virtual std::vector<std::shared_ptr<E> > bpp::AssociationGraphObserver< N, E >::getEdges ( const std::shared_ptr< N >  node) const
pure virtualinherited

Get all the edges from/to a node in the graph.

Parameters
nodethe node one wants to get its neighbor edges
Returns
a vector containing the edges

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getEdges() [2/4]

◆ getEdges() [3/4]

std::vector<Eref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdges ( const Nref  node) const
inlinevirtualinherited

Get all the edges of a node in the graph.

Parameters
nodethe node one wants to get its edges
Returns
a vector containing the edges

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1096 of file AssociationGraphImplObserver.h.

◆ getEdges() [4/4]

std::vector<EdgeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdges ( NodeIndex  node) const
inlinevirtualinherited

◆ getEdgesFromGraphid() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<E> > bpp::AssociationGraphObserver< N, E >::getEdgesFromGraphid ( std::vector< EdgeGraphid ) const
pure virtualinherited

◆ getEdgesFromGraphid() [2/2]

std::vector<Eref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getEdgesFromGraphid ( std::vector< EdgeGraphid edges) const
inlinevirtualinherited

◆ getFatherOfEdge() [1/3]

template<class N , class E >
virtual NodeIndex bpp::AssociationDAGraphObserver< N, E >::getFatherOfEdge ( const EdgeIndex  edge) const
pure virtualinherited

◆ getFatherOfEdge() [2/3]

template<class N, class E, class DAGraphImpl>
std::shared_ptr<N> bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getFatherOfEdge ( const std::shared_ptr< E >  edge) const
inlinevirtual

◆ getFatherOfEdge() [3/3]

◆ getFathers() [1/3]

template<class N , class E >
virtual std::vector<NodeIndex> bpp::AssociationDAGraphObserver< N, E >::getFathers ( const NodeIndex  node) const
pure virtualinherited

◆ getFathers() [2/3]

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<N> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getFathers ( const std::shared_ptr< N >  node) const
inlinevirtual

◆ getFathers() [3/3]

◆ getGraph() [1/2]

const std::shared_ptr<DAGraphImpl > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph ( ) const
inlineinherited

◆ getGraph() [2/2]

std::shared_ptr<DAGraphImpl > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph ( )
inlineinherited

Definition at line 320 of file AssociationGraphImplObserver.h.

◆ getIncomingEdges() [1/4]

template<class N, class E>
virtual std::vector<std::shared_ptr<E> > bpp::AssociationGraphObserver< N, E >::getIncomingEdges ( const std::shared_ptr< N >  node) const
pure virtualinherited

In an directed graph, get all the edges which are coming to a node in the graph.

Parameters
nodethe node one wants to get its edges
Returns
a vector containing the incoming edges

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getIncomingEdges() [2/4]

template<class N, class E>
virtual std::vector<EdgeIndex> bpp::AssociationGraphObserver< N, E >::getIncomingEdges ( NodeIndex  node) const
pure virtualinherited

◆ getIncomingEdges() [3/4]

std::vector<Eref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getIncomingEdges ( const Nref  node) const
inlinevirtualinherited

In an directed graph, get all the edges which are coming to a node in the graph.

Parameters
nodethe node one wants to get its edges
Returns
a vector containing the incoming edges

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1162 of file AssociationGraphImplObserver.h.

◆ getIncomingEdges() [4/4]

std::vector<EdgeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getIncomingEdges ( NodeIndex  node) const
inlinevirtualinherited

◆ getIncomingNeighbors() [1/4]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getIncomingNeighbors ( const std::shared_ptr< N >  node) const
pure virtualinherited

In an directed graph, get all the neighbors which are coming to a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the incoming neighbors

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getIncomingNeighbors() [2/4]

template<class N, class E>
virtual std::vector<NodeIndex> bpp::AssociationGraphObserver< N, E >::getIncomingNeighbors ( NodeIndex  node) const
pure virtualinherited

◆ getIncomingNeighbors() [3/4]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getIncomingNeighbors ( const Nref  node) const
inlinevirtualinherited

In an directed graph, get all the neighbors which are coming to a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the incoming neighbors

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1145 of file AssociationGraphImplObserver.h.

◆ getIncomingNeighbors() [4/4]

std::vector<NodeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getIncomingNeighbors ( NodeIndex  node) const
inlinevirtualinherited

◆ getLeavesFromNode() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getLeavesFromNode ( std::shared_ptr< N >  node,
unsigned int  maxDepth 
) const
pure virtualinherited

Get the leaves of a graph, ie, nodes with only one neighbor, starting from a peculiar node, up to a specific depth.

Parameters
nodethe starting node
maxDepththe max recursion depth
Returns
a vector containing the leaves

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getLeavesFromNode() [2/2]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getLeavesFromNode ( Nref  node,
unsigned int  maxDepth 
) const
inlinevirtualinherited

Get the leaves of a graph, ie, nodes with only one neighbor, starting from a peculiar node, with maxDepth recursion depths.

Parameters
nodethe starting node
maxDepththe max recursion depth
Returns
a vector containing the leaves

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1182 of file AssociationGraphImplObserver.h.

◆ getLeavesUnderNode()

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<N> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getLeavesUnderNode ( std::shared_ptr< N >  node) const
inlinevirtual

◆ getNeighbors() [1/4]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getNeighbors ( const std::shared_ptr< N >  node) const
pure virtualinherited

Get all the neighbors of a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the neighbors

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getNeighbors() [2/4]

◆ getNeighbors() [3/4]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNeighbors ( const Nref  node) const
inlinevirtualinherited

Get all the neighbors of a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the neighbors

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1073 of file AssociationGraphImplObserver.h.

◆ getNeighbors() [4/4]

std::vector<NodeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNeighbors ( NodeIndex  node) const
inlinevirtualinherited

Get the index of all neighbors of a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the neighbors

They are in the same order as the graphIds (and not necessary Indexes).

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1085 of file AssociationGraphImplObserver.h.

◆ getNode() [1/2]

template<class N, class E>
virtual std::shared_ptr<N> bpp::AssociationGraphObserver< N, E >::getNode ( NodeIndex  nodeIndex) const
pure virtualinherited

Return the associated Node, querying with an index

Parameters
nodeIndexthe index of the wanted node
Returns
N, a node object

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ getNode() [2/2]

Nref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNode ( NodeIndex  node) const
inlinevirtualinherited

◆ getNodeFromGraphid() [1/4]

template<class N, class E>
virtual const std::shared_ptr<N> bpp::AssociationGraphObserver< N, E >::getNodeFromGraphid ( NodeGraphid  ) const
pure virtualinherited

◆ getNodeFromGraphid() [2/4]

template<class N, class E>
virtual std::shared_ptr<N> bpp::AssociationGraphObserver< N, E >::getNodeFromGraphid ( NodeGraphid  )
pure virtualinherited

◆ getNodeFromGraphid() [3/4]

Nref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeFromGraphid ( NodeGraphid  node)
inlinevirtualinherited

◆ getNodeFromGraphid() [4/4]

const Nref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeFromGraphid ( NodeGraphid  node) const
inlinevirtualinherited

Transforms an (a list of) id(s) into an (a list of) object(s)

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 627 of file AssociationGraphImplObserver.h.

◆ getNodeGraphid() [1/2]

template<class N, class E>
virtual NodeGraphid bpp::AssociationGraphObserver< N, E >::getNodeGraphid ( const std::shared_ptr< N >  nodeObject) const
pure virtualinherited

Return the associated Node ID

Parameters
nodeObjectobject which to return the node ID
Returns
a node ID

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ getNodeGraphid() [2/2]

◆ getNodeIndex() [1/2]

template<class N, class E>
virtual NodeIndex bpp::AssociationGraphObserver< N, E >::getNodeIndex ( const std::shared_ptr< N >  nodeObject) const
pure virtualinherited

Return the associated Node index

Parameters
nodeObjectobject which to return the node index
Returns
a node index

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ getNodeIndex() [2/2]

NodeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeIndex ( const Nref  nodeObject) const
inlinevirtualinherited

Return the associated Node index

Parameters
nodeObjectobject which to return the node index
Returns
a node index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 728 of file AssociationGraphImplObserver.h.

Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getFatherOfEdge(), and bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getSon().

◆ getNodeIndexes() [1/2]

template<class N, class E>
virtual std::vector<NodeIndex> bpp::AssociationGraphObserver< N, E >::getNodeIndexes ( std::vector< std::shared_ptr< N >>  nodeObjects) const
pure virtualinherited

◆ getNodeIndexes() [2/2]

◆ getNodes()

std::pair<Nref, Nref> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodes ( Eref  edge) const
inlineinherited

Get nodes located at the extremities of an edge

Parameters
edgean edge
Returns
a pair of the Nodes at each extremity of the edge example : N1–E1–>N2; getNodes(E1) will return (N1,N2);

Definition at line 1437 of file AssociationGraphImplObserver.h.

◆ getNodesFromGraphid() [1/2]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getNodesFromGraphid ( std::vector< NodeGraphid ) const
pure virtualinherited

◆ getNodesFromGraphid() [2/2]

◆ getNumberOfEdges()

size_t bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNumberOfEdges ( ) const
inlineinherited

Return the number of defined edges, ie edges that have a corresponding object in this GraphObserver

Returns
the number of edges

Definition at line 1531 of file AssociationGraphImplObserver.h.

◆ getNumberOfFathers()

template<class N, class E, class DAGraphImpl>
size_t bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getNumberOfFathers ( const std::shared_ptr< N >  node) const
inlinevirtual

Return the number of fathers

Parameters
nodethe concerned node
Returns
the number of fathers

Implements bpp::AssociationDAGraphObserver< N, E >.

Definition at line 203 of file AssociationDAGraphImplObserver.h.

References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().

◆ getNumberOfLeaves()

size_t bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNumberOfLeaves ( ) const
inlineinherited

Return the number of defined leaves, ie leaves that have a corresponding object in this GraphObserver

Returns
the number of leaves

Definition at line 1542 of file AssociationGraphImplObserver.h.

◆ getNumberOfNodes()

size_t bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNumberOfNodes ( ) const
inlineinherited

Return the number of defined nodes, ie nodes that have a corresponding object in this GraphObserver

Returns
the number of nodes

Definition at line 1521 of file AssociationGraphImplObserver.h.

◆ getNumberOfSons()

template<class N, class E, class DAGraphImpl>
size_t bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getNumberOfSons ( const std::shared_ptr< N >  node) const
inlinevirtual

Return the number of sons

Parameters
nodethe concerned node
Returns
the number of sons

Implements bpp::AssociationDAGraphObserver< N, E >.

Definition at line 213 of file AssociationDAGraphImplObserver.h.

References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph(), and bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getNodeGraphid().

◆ getOutgoingEdges() [1/4]

template<class N, class E>
virtual std::vector<std::shared_ptr<E> > bpp::AssociationGraphObserver< N, E >::getOutgoingEdges ( const std::shared_ptr< N >  node) const
pure virtualinherited

In an directed graph, get all the edges which are leaving a node in the graph.

Parameters
nodethe node one wants to get its edges
Returns
a vector containing the outgoing edges

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getOutgoingEdges() [2/4]

template<class N, class E>
virtual std::vector<EdgeIndex> bpp::AssociationGraphObserver< N, E >::getOutgoingEdges ( NodeIndex  node) const
pure virtualinherited

◆ getOutgoingEdges() [3/4]

std::vector<Eref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getOutgoingEdges ( const Nref  node) const
inlinevirtualinherited

In an directed graph, get all the edges which are leaving a node in the graph.

Parameters
nodethe node one wants to get its edges
Returns
a vector containing the outgoing edges

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1129 of file AssociationGraphImplObserver.h.

◆ getOutgoingEdges() [4/4]

std::vector<EdgeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getOutgoingEdges ( NodeIndex  node) const
inlinevirtualinherited

◆ getOutgoingNeighbors() [1/4]

template<class N, class E>
virtual std::vector<std::shared_ptr<N> > bpp::AssociationGraphObserver< N, E >::getOutgoingNeighbors ( const std::shared_ptr< N >  node) const
pure virtualinherited

In an directed graph, get all the neighbors which are leaving a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the outgoing neighbors

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::NodeIterator::~NodeIterator().

◆ getOutgoingNeighbors() [2/4]

template<class N, class E>
virtual std::vector<NodeIndex> bpp::AssociationGraphObserver< N, E >::getOutgoingNeighbors ( NodeIndex  node) const
pure virtualinherited

◆ getOutgoingNeighbors() [3/4]

std::vector<Nref > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getOutgoingNeighbors ( const Nref  node) const
inlinevirtualinherited

In an directed graph, get all the neighbors which are leaving a node in the graph.

Parameters
nodethe node one wants to get its neighbors
Returns
a vector containing the outgoing neighbors

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1113 of file AssociationGraphImplObserver.h.

◆ getOutgoingNeighbors() [4/4]

std::vector<NodeIndex> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getOutgoingNeighbors ( NodeIndex  node) const
inlinevirtualinherited

◆ getRoot() [1/2]

template<class N, class E>
virtual std::shared_ptr<N> bpp::AssociationGraphObserver< N, E >::getRoot ( ) const
pure virtualinherited

◆ getRoot() [2/2]

Nref bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getRoot ( ) const
inlinevirtualinherited
Returns
the root

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 692 of file AssociationGraphImplObserver.h.

◆ getRootIndex() [1/2]

◆ getRootIndex() [2/2]

NodeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getRootIndex ( ) const
inlinevirtualinherited

◆ getSon() [1/3]

template<class N , class E >
virtual NodeIndex bpp::AssociationDAGraphObserver< N, E >::getSon ( const EdgeIndex  edge) const
pure virtualinherited

◆ getSon() [2/3]

template<class N, class E, class DAGraphImpl>
std::shared_ptr<N> bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getSon ( const std::shared_ptr< E >  edge) const
inlinevirtual

◆ getSon() [3/3]

◆ getSons() [1/3]

template<class N , class E >
virtual std::vector<NodeIndex> bpp::AssociationDAGraphObserver< N, E >::getSons ( const NodeIndex  node) const
pure virtualinherited

◆ getSons() [2/3]

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<N> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::getSons ( const std::shared_ptr< N >  node) const
inlinevirtual

◆ getSons() [3/3]

◆ hasEdge() [1/3]

template<class N, class E>
virtual bool bpp::AssociationGraphObserver< N, E >::hasEdge ( EdgeIndex  edgeIndex) const
pure virtualinherited

◆ hasEdge() [2/3]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::hasEdge ( Eref  edgeObject) const
inlineinherited

Definition at line 337 of file AssociationGraphImplObserver.h.

◆ hasEdge() [3/3]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::hasEdge ( EdgeIndex  edge) const
inlinevirtualinherited

Return if has Edge matching EdgeIndex

Parameters
edgeEdgeIndex index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 891 of file AssociationGraphImplObserver.h.

◆ hasEdgeIndex() [1/2]

template<class N, class E>
virtual bool bpp::AssociationGraphObserver< N, E >::hasEdgeIndex ( const std::shared_ptr< E >  edgeObject) const
pure virtualinherited

◆ hasEdgeIndex() [2/2]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::hasEdgeIndex ( const Eref  edgeObject) const
inlinevirtualinherited

◆ hasFather() [1/3]

template<class N , class E >
virtual bool bpp::AssociationDAGraphObserver< N, E >::hasFather ( const NodeIndex  node) const
pure virtualinherited

◆ hasFather() [2/3]

template<class N, class E, class DAGraphImpl>
bool bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::hasFather ( const std::shared_ptr< N >  nodeObject) const
inlinevirtual

◆ hasFather() [3/3]

◆ hasNode() [1/3]

template<class N, class E>
virtual bool bpp::AssociationGraphObserver< N, E >::hasNode ( NodeIndex  nodeIndex) const
pure virtualinherited

◆ hasNode() [2/3]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::hasNode ( Nref  nodeObject) const
inlineinherited

Definition at line 330 of file AssociationGraphImplObserver.h.

◆ hasNode() [3/3]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::hasNode ( NodeIndex  node) const
inlinevirtualinherited

Return if has Node matching NodeIndex

Parameters
nodeNodeIndex index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 882 of file AssociationGraphImplObserver.h.

◆ hasNodeIndex() [1/2]

template<class N, class E>
virtual bool bpp::AssociationGraphObserver< N, E >::hasNodeIndex ( const std::shared_ptr< N >  nodeObject) const
pure virtualinherited

◆ hasNodeIndex() [2/2]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::hasNodeIndex ( const Nref  nodeObject) const
inlinevirtualinherited

return if the object has an index.

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 713 of file AssociationGraphImplObserver.h.

◆ incomingEdgesIterator() [1/3]

◆ incomingEdgesIterator() [2/3]

std::unique_ptr<typename AssociationGraphObserver<N, E>::EdgeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::incomingEdgesIterator ( Nref  node)
inlinevirtualinherited

◆ incomingEdgesIterator() [3/3]

std::unique_ptr<typename AssociationGraphObserver<N, E>::EdgeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::incomingEdgesIterator ( Nref  node) const
inlineinherited

Definition at line 1396 of file AssociationGraphImplObserver.h.

◆ incomingNeighborNodesIterator() [1/4]

template<class N, class E>
virtual std::unique_ptr<NodeIterator> bpp::AssociationGraphObserver< N, E >::incomingNeighborNodesIterator ( std::shared_ptr< N >  node)
pure virtualinherited

◆ incomingNeighborNodesIterator() [2/4]

template<class N, class E>
virtual std::unique_ptr<NodeIterator> bpp::AssociationGraphObserver< N, E >::incomingNeighborNodesIterator ( std::shared_ptr< N >  node) const
pure virtualinherited

◆ incomingNeighborNodesIterator() [3/4]

std::unique_ptr<typename AssociationGraphObserver<N, E>::NodeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::incomingNeighborNodesIterator ( Nref  node)
inlinevirtualinherited

◆ incomingNeighborNodesIterator() [4/4]

std::unique_ptr<typename AssociationGraphObserver<N, E>::NodeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::incomingNeighborNodesIterator ( Nref  node) const
inlinevirtualinherited

◆ isLeaf() [1/2]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::isLeaf ( const Nref  node) const
inlineinherited

Is the node a leaf?

Definition at line 1421 of file AssociationGraphImplObserver.h.

◆ isLeaf() [2/2]

bool bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::isLeaf ( const NodeIndex  nodeid) const
inlineinherited

Definition at line 1426 of file AssociationGraphImplObserver.h.

◆ isRooted()

template<class N, class E, class DAGraphImpl>
bool bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::isRooted ( ) const
inlinevirtual

Is the DAG rooted? Ie with a unique node with no father.

Returns
true if rooted

Implements bpp::AssociationDAGraphObserver< N, E >.

Definition at line 108 of file AssociationDAGraphImplObserver.h.

References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph().

◆ isValid()

template<class N, class E, class DAGraphImpl>
bool bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::isValid ( ) const
inlinevirtual

Is the graph a DAG? A DAG must be acyclic and with no isolated node.

Returns
true if valid DAG

Implements bpp::AssociationDAGraphObserver< N, E >.

Definition at line 99 of file AssociationDAGraphImplObserver.h.

References bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::getGraph().

◆ link() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::link ( std::shared_ptr< N >  nodeObjectA,
std::shared_ptr< N >  nodeObjectB,
std::shared_ptr< E >  edgeObject = 00 
)
pure virtualinherited

Creates a link between two existing nodes. If directed graph: nodeA -> nodeB.

Parameters
nodeObjectAsource node (or first node if undirected)
nodeObjectBtarget node (or second node if undirected)
edgeObjectthe optional edge between the nodes (default = 00)

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ link() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::link ( Nref  nodeObjectA,
Nref  nodeObjectB,
Eref  edgeObject = 00 
)
inlinevirtualinherited

Creates a link between two existing nodes. If directed graph: nodeA -> nodeB.

Parameters
nodeObjectAsource node (or first node if undirected)
nodeObjectBtarget node (or second node if undirected)
edgeObjectthe optional edge between the nodes (default = 00)

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 470 of file AssociationGraphImplObserver.h.

Referenced by bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::addFather(), and bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::addSon().

◆ nodeToString()

std::string bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::nodeToString ( const Nref  nodeObject) const
inlineinherited

Definition at line 347 of file AssociationGraphImplObserver.h.

◆ operator=()

template<class N, class E, class DAGraphImpl>
AssociationDAGraphImplObserver<N, E, DAGraphImpl>& bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::operator= ( bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl > const &  dAGraphObserver)
inline

= Operator

Parameters
dAGraphObserverthe DAGraphObserver we want to copy the values

Definition at line 74 of file AssociationDAGraphImplObserver.h.

References bpp::AssociationGraphImplObserver< N, E, GraphImpl >::operator=().

◆ outgoingEdgesIterator() [1/3]

◆ outgoingEdgesIterator() [2/3]

std::unique_ptr<typename AssociationGraphObserver<N, E>::EdgeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outgoingEdgesIterator ( Nref  node)
inlinevirtualinherited

◆ outgoingEdgesIterator() [3/3]

std::unique_ptr<typename AssociationGraphObserver<N, E>::EdgeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outgoingEdgesIterator ( Nref  node) const
inlineinherited

Definition at line 1382 of file AssociationGraphImplObserver.h.

◆ outgoingNeighborNodesIterator() [1/4]

template<class N, class E>
virtual std::unique_ptr<NodeIterator> bpp::AssociationGraphObserver< N, E >::outgoingNeighborNodesIterator ( std::shared_ptr< N >  node)
pure virtualinherited

◆ outgoingNeighborNodesIterator() [2/4]

template<class N, class E>
virtual std::unique_ptr<NodeIterator> bpp::AssociationGraphObserver< N, E >::outgoingNeighborNodesIterator ( std::shared_ptr< N >  node) const
pure virtualinherited

◆ outgoingNeighborNodesIterator() [3/4]

std::unique_ptr<typename AssociationGraphObserver<N, E>::NodeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outgoingNeighborNodesIterator ( Nref  node)
inlinevirtualinherited

◆ outgoingNeighborNodesIterator() [4/4]

std::unique_ptr<typename AssociationGraphObserver<N, E>::NodeIterator> bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outgoingNeighborNodesIterator ( Nref  node) const
inlinevirtualinherited

◆ outputToDot() [1/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outputToDot ( const std::string &  fname,
const std::string &  name 
) const
inlineinherited

Definition at line 935 of file AssociationGraphImplObserver.h.

◆ outputToDot() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::outputToDot ( std::ostream &  out,
const std::string &  name 
) const
inlineinherited

Definition at line 943 of file AssociationGraphImplObserver.h.

◆ removeFather()

template<class N, class E, class DAGraphImpl>
void bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::removeFather ( const std::shared_ptr< N >  node,
const std::shared_ptr< N >  father 
)
inlinevirtual

◆ removeFathers()

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<N> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::removeFathers ( const std::shared_ptr< N >  node)
inlinevirtual

◆ removeSon()

template<class N, class E, class DAGraphImpl>
void bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::removeSon ( const std::shared_ptr< N >  node,
const std::shared_ptr< N >  son 
)
inlinevirtual

◆ removeSons()

template<class N, class E, class DAGraphImpl>
std::vector<std::shared_ptr<N> > bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::removeSons ( const std::shared_ptr< N >  node)
inlinevirtual

◆ rootAt()

template<class N, class E, class DAGraphImpl>
void bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::rootAt ( const std::shared_ptr< N >  root)
inlinevirtual

◆ setEdgeIndex() [1/2]

template<class N, class E>
virtual EdgeIndex bpp::AssociationGraphObserver< N, E >::setEdgeIndex ( const std::shared_ptr< E >  edgeObject,
EdgeIndex  index 
)
pure virtualinherited

Set an index associated to an edge

Parameters
edgeObjectobject to which one want to set the index
indexintex to be given, 0 to get the first free index
Returns
the given index

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ setEdgeIndex() [2/2]

EdgeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::setEdgeIndex ( const Eref  edgeObject,
EdgeIndex  index 
)
inlinevirtualinherited

Set an index associated to an edge

Parameters
edgeObjectobject to which one want to set the index
indexintex to be given, 0 to get the first free index
Returns
the given index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 798 of file AssociationGraphImplObserver.h.

◆ setEdgeLinking() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::setEdgeLinking ( std::shared_ptr< N >  nodeA,
std::shared_ptr< N >  nodeB,
std::shared_ptr< E >  edge 
)
pure virtualinherited

Sets the Edge between two nodes nodeA -> nodeB

Parameters
nodeAsource node (if directed)
nodeBdestination node (if directed)
edgethe edge between these two nodes

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::EdgeIterator::~EdgeIterator().

◆ setEdgeLinking() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::setEdgeLinking ( Nref  nodeA,
Nref  nodeB,
Eref  edge 
)
inlinevirtualinherited

Sets the Edge between two nodes nodeA -> nodeB

Parameters
nodeAsource node (if directed)
nodeBdestination node (if directed)
edgethe edge between these two nodes

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 1460 of file AssociationGraphImplObserver.h.

◆ setNodeIndex() [1/2]

template<class N, class E>
virtual NodeIndex bpp::AssociationGraphObserver< N, E >::setNodeIndex ( const std::shared_ptr< N >  nodeObject,
NodeIndex  index 
)
pure virtualinherited

Set an index associated to a node

Parameters
nodeObjectobject to which one want to set the index
indexintex to be given, 0 to get the first free index
Returns
the given index

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ setNodeIndex() [2/2]

NodeIndex bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::setNodeIndex ( const Nref  nodeObject,
NodeIndex  index 
)
inlinevirtualinherited

Set an index associated to a node

Parameters
nodeObjectobject to which one want to set the index
indexindex to be given
Returns
the given index

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 774 of file AssociationGraphImplObserver.h.

◆ setRoot()

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::setRoot ( const Nref  newRoot)
inlineinherited

set the root (but no checking, to be used at first construction)

Definition at line 684 of file AssociationGraphImplObserver.h.

◆ sonsIterator() [1/2]

template<class N, class E, class DAGraphImpl>
std::unique_ptr<typename AssociationDAGraphObserver<N, E>::NodeIterator> bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::sonsIterator ( std::shared_ptr< N >  node)
inlinevirtual

◆ sonsIterator() [2/2]

template<class N, class E, class DAGraphImpl>
std::unique_ptr<typename AssociationDAGraphObserver<N, E>::NodeIterator> bpp::AssociationDAGraphImplObserver< N, E, DAGraphImpl >::sonsIterator ( std::shared_ptr< N >  node) const
inlinevirtual

◆ unlink() [1/2]

template<class N, class E>
virtual void bpp::AssociationGraphObserver< N, E >::unlink ( std::shared_ptr< N >  nodeObjectA,
std::shared_ptr< N >  nodeObjectB 
)
pure virtualinherited

Detroys a link between two existing nodes in the graph. If directed graph: nodeA -> nodeB.

Parameters
nodeObjectAsource node (or first node if undirected)
nodeObjectBtarget node (or second node if undirected)

Implemented in bpp::AssociationGraphImplObserver< N, E, GraphImpl >, bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >, and bpp::AssociationGraphImplObserver< N, E, TreeGraphImpl >.

Referenced by bpp::AssociationGraphObserver< N, E >::copy().

◆ unlink() [2/2]

void bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::unlink ( Nref  nodeObjectA,
Nref  nodeObjectB 
)
inlinevirtualinherited

Deletes the link between two existing nodes in the graph.

Implements bpp::AssociationGraphObserver< N, E >.

Definition at line 497 of file AssociationGraphImplObserver.h.

Member Data Documentation

◆ subjectGraph_

std::shared_ptr<DAGraphImpl > bpp::AssociationGraphImplObserver< N, E, DAGraphImpl >::subjectGraph_
protectedinherited

The observed Graph. Anytime this graph is observed, the current object will be warned to take changes into account.

Definition at line 44 of file AssociationGraphImplObserver.h.


The documentation for this class was generated from the following file: