nsdlib.common.nx_utils module
- nsdlib.common.nx_utils.create_snapshot_IG(G, delete_ratio=None) Tuple[Graph, list][source]
Create a snapshot of the network by removing a random number of nodes.
- Parameters:
G – The network
ratio_to_remove – The ratio of nodes to remove. If None, remove 10%
of the nodes.