G=gsp_david_sensor_network(N);
N | Number of vertices (default 64) |
G | Graph structure. |
'gsp_david_sensor_network(N)' initializes a graph structure containing the weighted adjacency matrix (G.W), the number of vertices (G.N), the plotting coordinates (G.coords), and the plotting coordinate limits (G.limits) of a random sensor network with N vertices. The sensors are placed randomly in the unit square, and edges are placed between any sensors within a fixed radius of each other. The edge weights are assigned via a thresholded Gaussian kernel. The sensor network will be connected for \(N=500\) or \(N=64\).
Warning: this graph is not necessarly connected...
Example:
G = gsp_david_sensor_network(64); paramplot.show_edges = 1; gsp_plot_graph(G,paramplot);