%% Plot Graph
% Create a graph using a sparse adjacency matrix, and then plot the graph.

n = 10;
A = delsq(numgrid('L',n+2));
G = graph(A,'omitselfloops')

%

plot(G)

% Copyright 2015 The MathWorks, Inc.