function A = graph_star(n) % Creates an adjacency matrix for a start undirected graph A = zeros(n,n); for i=2:n A(i, 1) = 1; end A = A + A';