function pot = mk_pot_from_node(bnet, n)
% MK_POT_FROM_NODE Compute a potential representing the conditional distrib. of node n.
% pot = mk_pot_from_node(bnet, n)

bnode = bnet.bnodes{bnet.equiv_class(n)};
bnode.parents = parents(bnet.adj_mat, n);
bnode.self = n;
pot = mk_pot_from_bnode(bnode, bnet);
 
