|
Algorithm A1 Calculate correlations |
Require: multiple initial set of opinions and the adjacency matrix of the embedding network . Number of repetitions
Ensure: a correlation matrix that contains the number of times a pair of nodes has the same final opinion in the steady state when running a Metropolis algorithm times
|
| |
set
set
repeat
set initial opinion uniformly at random
call a Metropolis algorithm
define correlation value for each pair of nodes
for all with i, j do
if then
else
end if
end for
until
return as correlation matrix
|