view toolboxes/FullBNT-1.0.7/graph/mk_undirected.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
line wrap: on
line source
function U = mk_undirected(G)

[nr nc] = size(G);
U = G;
for i=1:nr
  for j=1:nc
    if U(i,j)==1
      U(j,i) = 1;
    end
  end
end