aGrUM  0.14.2
MarkovBlanket_inl.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
27 // to ease parsing by IDE
29 
30 namespace gum {
31 
32  INLINE DiGraph MarkovBlanket::mb() { return __mb; }
33 
34  INLINE const NodeSet& MarkovBlanket::parents(const NodeId id) const {
35  return __mb.parents(id);
36  }
37 
38  INLINE const NodeSet& MarkovBlanket::children(const NodeId id) const {
39  return __mb.children(id);
40  }
41 
42  INLINE Size MarkovBlanket::sizeArcs() const { return __mb.sizeArcs(); }
43 
44  INLINE const ArcSet& MarkovBlanket::arcs() const { return __mb.arcs(); }
45 
46  INLINE Size MarkovBlanket::sizeNodes() const { return __mb.sizeNodes(); }
47 
48  INLINE Size MarkovBlanket::size() const { return __mb.size(); }
49 
50  INLINE const NodeGraphPart& MarkovBlanket::nodes() const { return __mb.nodes(); }
51 } // namespace gum
const NodeSet & parents(const NodeId id) const
wrapping DiGraph::parents(id)
Size sizeArcs() const
wrapping DiGraph::sizeArcs()
Size sizeNodes() const
wrapping DiGraph::sizeNodes()
Size size() const
alias for sizeNodes
const NodeSet & children(const NodeId id) const
wrapping DiGraph::parents(id)
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Size size() const
wrapping DiGraph::size()
const ArcSet & arcs() const
wrapping DiGraph::arcs()
Size sizeArcs() const
indicates the number of arcs stored within the ArcGraphPart
Class building the markovBlanket from a DAGmodel and a node name.
const NodeSet & parents(const NodeId id) const
returns the set of nodes with arc ingoing to a given node
const NodeGraphPart & nodes() const
return *this as a NodeGraphPart
Base class for all oriented graphs.
Definition: diGraph.h:108
Class for node sets in graph.
Size sizeNodes() const
returns the number of nodes in the NodeGraphPart
const NodeSet & children(const NodeId id) const
returns the set of nodes with arc outgoing from a given node
const ArcSet & arcs() const
returns the set of arcs stored within the ArcGraphPart
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:45
Size NodeId
Type for node ids.
Definition: graphElements.h:97
const NodeGraphPart & nodes() const
wrapping DiGraph::nodes()