Code covered by the BSD License  

Highlights from
Heider Balance Theory

image thumbnail
from Heider Balance Theory by Hokky Situngkir
Graph Analysis of Heider Balance Theory

example.m

% Example for the adjacency matrix of
%      0     0     1     1     1    -1     1     0
%      0     0     1    -1     0     1     1    -1
%      1     1     0     0     0     1     0     0
%      1    -1     0     0     0     0    -1     0
%      1     0     0     0     0     1    -1     1
%     -1     1     1     0     1     0     1    -1
%      1     1     0    -1    -1     1     0     0
%      0    -1     0     0     1    -1     0     0
% and 100 iterations of simulations

load adj2
heider(adj2,100);

Contact us at files@mathworks.com