The paper deals with updating of beliefs in networks. First, it is shown that any exact propagation scheme must contain a triangulation of the network, and therefore essentially is a message passing scheme over a junction tree. In the second part of the paper we give a simple algorithm for constructing an optimal junction tree from a triangulated network.