fprintf('graph G {\n');
n=2;
N=2^(n*n);
e=n*eye(n);
%fprintf('page = "11.69,8.27";\n');
%fprintf('rotate = 90;\n');
for i=0:(N-1)
 fprintf(' %2d [fixedsize=true,height=0.5,width=0.5,labelfontsize=6.0]\n',i);
 a=mat(n,i);
 for j=i:(N-1)
  b=mat(n,j);
  %if norm(a*a'+b*b'-2*e)==0
   if norm(a*b'+b*a')==0
    fprintf(' %2d -- %2d [color=red,len=1];\n',i,j);
   end
   if norm(a*b'-b*a')==0
    fprintf(' %2d -- %2d [color=blue,len=3];\n',i,j);
   end
  %end
 end
end
fprintf('}\n');

