-
Notifications
You must be signed in to change notification settings - Fork 22
pyNBS.data_import_tools.degree_shuffNet
Tongqiu (Iris) Jia edited this page Jan 25, 2018
·
1 revision
This is a helper function performs a degree-preserved shuffling of the given network. The degree of all nodes will be preserved, but nodes will be randomly connected to other nodes in the network. This function can be called from load_network_file
.
degree_shuffNet(
network, verbose=False
)
- network (required, Networkx.Graph): Networkx object loaded from network file.
- verbose (optional, bool, default=False): Verbosity flag for reporting on function progress.
- shuff_net (Networkx.Graph): Shuffled network by preserving node-degree.