Return a connected Watts-Strogatz small-world graph.
Attempt to generate a connected realization by repeated generation of Watts-Strogatz small-world graphs. An exception is raised if the maximum number of tries is exceeded.
Parameters: | n : int
k : int
p : float
tries : int
create_using : graph, optional (default Graph)
seed : int, optional
|
---|