1 %feature("dosctring") gum::MarkovBlanket 2 " 3 Class building the Markov blanket of a node in a graph. 4 5 MarkovBlanket(m,n) -> MarkovBlanket 6 Parameters: 7 * **m** (*pyAgrum.DAGmodel*) -- a DAGmodel 8 * **n** (*int*) -- a node id 9 10 MarkovBlanket(m,name) -> MarkovBlanket 11 Parameters: 12 * **m** (*pyAgrum.DAGmodel*) -- a DAGmodel 13 * **name** (*str*) -- a node name 14 " 15 16 %feature("docstring") gum::MarkovBlanket::dag 17 " 18 Returns 19 ------- 20 pyAgrum.DAG 21 a copy of the DAG 22 " 23 24 %feature("docstring") gum::MarkovBlanket::toDot 25 " 26 Returns 27 ------- 28 str 29 a friendly display of the graph in DOT format 30 " 31 32 %feature("docstring") gum::MarkovBlanket::parents 33 " 34 Parameters 35 ---------- 36 id : 37 The id of the child node 38 39 Returns 40 ------- 41 Set 42 the set of the parents ids. 43 " 44 45 %feature("docstring") gum::MarkovBlanket::children 46 " 47 Parameters 48 ---------- 49 id : int 50 the id of the parent 51 52 Returns 53 ------- 54 Set 55 the set of all the children 56 " 57 58 %feature("docstring") gum::MarkovBlanket::sizeArcs 59 " 60 Returns 61 ------- 62 int 63 the number of arcs in the graph 64 " 65 66 %feature("docstring") gum::MarkovBlanket::arcs 67 " 68 Returns 69 ------- 70 List 71 the list of the arcs 72 " 73 74 %feature("docstring") gum::MarkovBlanket::nodes 75 " 76 Returns 77 ------- 78 set 79 the set of ids 80 " 81 82 %feature("docstring") gum::MarkovBlanket::size 83 " 84 Returns 85 ------- 86 int 87 the number of nodes in the graph 88 " 89 90 %feature("docstring") gum::MarkovBlanket::sizeNodes 91 " 92 Returns 93 ------- 94 int 95 the number of nodes in the graph 96 " 97 98 %feature("docstring") gum::MarkovBlanket::hasSameStructure 99 " 100 Parameters 101 ---------- 102 pyAgrum.DAGmodel 103 a direct acyclic model 104 105 Returns 106 ------- 107 bool 108 True if all the named node are the same and all the named arcs are the same 109 " 110