Skip to content

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.


Function Call:

degree_shuffNet(network, verbose=False)

Parameters:

  • network (required, Networkx.Graph): Networkx object loaded from network file.
  • verbose (optional, bool, default=False): Verbosity flag for reporting on function progress.

Returns:

  • shuff_net (Networkx.Graph): Shuffled network by preserving node-degree.
Clone this wiki locally