function x = sample_node(bnet, n)
% SAMPLE_NODE Draw a random sample from Pr(node n | observed parents)
% x = sample_node(bnet, n)

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