function new_bnode = modify_parents_tabular(bnode, parents, bnet)
% MODIFY_PARENTS_TABULAR_NODE Create a new tabular node but with different parents.
% new_bnode = modify_parents_tabular_node(bnode, parents, bnet)

if isequal(parents, bnode.parents)
  new_bnode = bnode;
else
  new_bnode = mk_tabular_node(bnet, bnode.self, bnode.equiv_sample_size, parents);
end

