structify_net.zoo.sort_spatial_WS
- structify_net.zoo.sort_spatial_WS(nodes, k=10)
Rank model based on a spatial Watts-Strogatz model
This rank model reproduce the original Watts-Strogatz model. Each node is connected to its k nearest neighbors in a ring topology.
- Args:
nodes (_type_): A networkx graph (node names and node attributes are preserved) or an integer (number of nodes) k (int, optional): Number of nearest neighbors. Defaults to 10.
- Returns:
structify_net.Rank_model
:: The rank model