Daniel@0: function mnet = mk_mnet(graph, node_sizes, cliques, potentials) Daniel@0: % MK_MNET Make a Markov network (Markov Random Field) Daniel@0: % Daniel@0: % mnet = mk_mnet(adj_mat, node_sizes, cliques, potentials) Daniel@0: % Daniel@0: % cliques{i} is a list of the nodes in clq i Daniel@0: % potentials{i} is a dpot object corresponding to the potential for clique i Daniel@0: % Daniel@0: Daniel@0: mnet.markov_net = 1; Daniel@0: mnet.graph = graph; Daniel@0: mnet.node_sizes = node_sizes; Daniel@0: mnet.user_cliques = cliques; Daniel@0: mnet.user_potentials = potentials;