1 %feature("docstring") JunctionTreeGenerator
2 "
3 JunctionTreeGenerator is use to generate junction tree or binary junction tree from Bayesian networks.
4 
5 JunctionTreeGenerator() -> JunctionTreeGenerator
6     default constructor
7 "
8 
9 %feature("docstring") JunctionTreeGenerator::junctionTree
10 "
11 Computes the junction tree for its parameters. If the first parameter is a graph, the heurisitcs assume that all the node have the same domain size (2). If given, the heuristic takes into account the partial order for its elimination order.
12 
13 Parameters
14 ----------
15 g : pyAgrum.UndiGraph
16 	a undirected graph
17 
18 dag : pyAgrum.DAG
19 	a dag
20 
21 bn : pyAgrum.BayesNet
22 	a BayesianNetwork
23 
24 partial_order: List[List[int]]
25 	a partial order among the nodeIDs
26 
27 Returns
28 -------
29 pyAgrum.CliqueGraph
30 	the current junction tree.
31 "
32 
33 %feature("docstring") JunctionTreeGenerator::binaryJoinTree
34 "
35 Computes the binary joint tree for its parameters. If the first parameter is a graph, the heurisitcs assume that all the node have the same domain size (2). If given, the heuristic takes into account the partial order for its elimination order.
36 
37 Parameters
38 ----------
39 g : pyAgrum.UndiGraph
40 	a undirected graph
41 
42 dag : pyAgrum.DAG
43 	a dag
44 
45 bn : pyAgrum.BayesNet
46 	a BayesianNetwork
47 
48 partial_order: List[List[int]]
49 	a partial order among the nodeIDs
50 
51 Returns
52 -------
53 pyAgrum.CliqueGraph
54 	the current binary joint tree
55 "
56 
57 %feature("docstring") JunctionTreeGenerator::eliminationOrder
58 "
59 Computes the elimination for its parameters. If the first parameter is a graph, the heurisitcs assume that all the node have the same domain size (2). If given, the heuristic takes into account the partial order for its elimination order.
60 
61 Parameters
62 ----------
63 g : pyAgrum.UndiGraph
64 	a undirected graph
65 
66 dag : pyAgrum.DAG
67 	a dag
68 
69 bn : pyAgrum.BayesNet
70 	a BayesianNetwork
71 
72 partial_order: List[List[int]]
73 	a partial order among the nodeIDs
74 
75 Returns
76 -------
77 pyAgrum.CliqueGraph
78 	the current elimination order.
79 "