function [determined, val] = determine_value_mux(bnode, bnet)
% DETERMINE_VALUE_MUX Determine the value of a mux node, if possible
% [determined, val] = determine_value_mux(bnode, bnet)

if all(bnet.obs_mask(bnode.parents))
  determined = 1;
  g = bnet.values(bnode.gate);
  ps = bnet.values(bnode.parents);
  val = ps(g);
else
  determined = 0;
  val = [];
end

