function new_bnode = modify_parents_noisyfn(bnode, parents, bnet)
% MODIFY_PARENTS_NOISYFN_NODE Create a new noisyfn node but with different parents.
% new_bnode = modify_parents_noisyfn_node(bnode, parents, bnet)

if isequal(parents, bnode.parents)
  new_bnode = bnode;
else
  new_bnode = mk_noisyfn_node(bnet, bnode.self, bnode.fn, bnode.symmetric, bnode.options, parents);
  new_bnode.prior = bnode.prior;
  % set adjystable mask to default
end

