These functions construct the nodeMap and edgeMap variables required by the 2011 version of UGM that are equivalent to some of the special cases provided by the infoStruct variable used in earlier version of UGM. For example, if you set tied = 1 and ising = 1, then parameters will be shared across nodes and an Ising parameterization will be used. In contrast, setting tied = 0 and ising = 0 will make each node have its own parameters and will use a full parameterization of the node and edge potentials.

These functions construct the nodeMap and edgeMap variables required by
the 2011 version of UGM that are equivalent to some of the special cases
provided by the infoStruct variable used in earlier version of UGM. For
example, if you set tied = 1 and ising = 1, then parameters will be
shared across nodes and an Ising parameterization will be used. In
contrast, setting tied = 0 and ising = 0 will make each node have its
own parameters and will use a full parameterization of the node and edge
potentials.
UGM_Sample_Junction.m: Fixed a major bug in the junction tree sampler
(made obsolete by the 2013 update to all junction tree codes).