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
seed : int, optional
|
---|