I have been trying to create a graph representing a square grid with 8 nodes. I have been using code given by Mathworks here:
n = 8;
A = delsq(numgrid('S',n+2));
G = graph(A,'omitselfloops');
p = plot(G);`
The plotted result is:
But I just wondered if I could make the image less curved. In order to make the graph look more 'uniform' and have all the edges the same length.
