G = gsp_spiral(); G = gsp_spiral(N); G = gsp_spiral(N,k); G = gsp_spiral(N, k, param);
N | Number of vertices. (default 200) |
k | Number of turns (3) |
param | Structure of optional parameters |
G | Graph structure. |
'gsp_spiral(N)' initializes a graph structure for the sprial graph.
The optional parameters are: * param.noise : Noise level (Default 5) * param.start : Starting angle in degree (Default 90) * param.k : Approximate number of connections per nodes (Default 4)
Example:
G = gsp_spiral(64); param.show_edges = 1; gsp_plot_graph(G,param);