27 #ifndef GUM_ClassDependencyGraph_H 28 #define GUM_ClassDependencyGraph_H 43 template <
typename GUM_SCALAR >
47 typedef std::pair< const PRMClassElementContainer< GUM_SCALAR >*,
145 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS ~ClassDependencyGraph()
Destructor.
DAG __graph
The graph itself.
Inline implementation of ClassDependencyGraph.
const DAG & dag() const
Returns a constant reference over the graph of the DAG representing the ClassDependencyGraph<GUM_SCAL...
Abstract class representing an element of PRM class.
NodeMap __node_map
Map each Class to a HashTable mapping the Class's ClassElements to their assigned NodeId in __graph...
gum is the global namespace for all aGrUM entities
ClassDependencyGraph(const PRM< GUM_SCALAR > &prm)
Default constructor.
The class for generic Hash Tables.
std::pair< const PRMClassElementContainer< GUM_SCALAR > *, const PRMClassElement< GUM_SCALAR > *> EltPair
Association between a class element and it's holding class.
NodeProperty< Size > __modalitites
The modalities map for each node in the ClassDependencyGraph<GUM_SCALAR>. This is useful when using a...
void __buildGraph(const PRM< GUM_SCALAR > &prm)
Build the class dependency graph.
This class represent the dependencies of all classes in a PRM<GUM_SCALAR>.
void __addNode(const PRMClassElementContainer< GUM_SCALAR > *c, const PRMClassElement< GUM_SCALAR > &elt)
Add nodes in __graph while updating consequently all the mappings.
This class represents a Probabilistic Relational PRMSystem<GUM_SCALAR>.
<agrum/PRM/classElementContainer.h>
HashTable< const PRMClassElementContainer< GUM_SCALAR > *, HashTable< const PRMClassElement< GUM_SCALAR > *, NodeId > *> NodeMap
Code shortcut.
void __addArcs(const PRMClassElementContainer< GUM_SCALAR > &c, NodeId node, HashTable< const PRMClassElement< GUM_SCALAR > *, NodeId > &map)
Add arcs in __graph.
const NodeProperty< Size > & modalities() const
Returns a mapping between the ClassDependencyGraph<GUM_SCALAR>'s nodes and their modalities.
Size NodeId
Type for node ids.
NodeProperty< EltPair *> __elt_map
Mapping between the nodes in __graph with the PRMClassElement<GUM_SCALAR> in the PRM<GUM_SCALAR>.