about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/general/mk_mnet.m
blob: 38d4cab38b33bac9e2d5a131de0363e89ee4f495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function mnet = mk_mnet(graph, node_sizes, cliques, potentials)
% MK_MNET Make a Markov network (Markov Random Field)
%
% mnet = mk_mnet(adj_mat, node_sizes, cliques, potentials)
%
% cliques{i} is a list of the nodes in clq i
% potentials{i} is a dpot object corresponding to the potential for clique i
%

mnet.markov_net = 1;
mnet.graph = graph;
mnet.node_sizes = node_sizes;
mnet.user_cliques = cliques;
mnet.user_potentials = potentials;