Skip to main content
. 2010 Nov 5;5(11):e13580. doi: 10.1371/journal.pone.0013580

Figure 2. An example of the Metropolis-Hastings transition step.

Figure 2

The current network, Inline graphic, with node labeling Inline graphic is updated to a proposed network, Inline graphic, by adding/deleting a single edge to/from Inline graphic at random. This picture shows two possible ways for Inline graphic to be updated. In one instance, a new edge is added between Inline graphic and Inline graphic to obtain Inline graphic, while the other Inline graphic is obtained by deleting the the edge between Inline graphic and Inline graphic. As for the proposed node labeling, an integer Inline graphic, in this example Inline graphic, is selected randomly from Inline graphic. From there the node labels Inline graphic and Inline graphic are swapped to get Inline graphic.