Skip to content

Create a random network using the Erdos-Renyi method (randomly assign a given number of edges to given nodes)

Notifications You must be signed in to change notification settings

newmanno/Random_Erdos_Renyi_network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Create a random network using the Erdos-Renyi method (randomly assign a given number of edges to given nodes)

Info: This script taked as input a file of nodes in a network and the number of edges to randomly assign to the nodes, then assign those edges to create a network. The results of this file need to be put into BiBC_degree_calculator.py, where the BiBC and degree for each of the nodes can be calculated.

Usage: python bootstrap_network.py <list_of_nodes.txt>

Required (positional) arguments:

  1. A text file containing just a list of nodes, all in a single column
  2. The number of edges to draw randomly between the nodes in the text file

About

Create a random network using the Erdos-Renyi method (randomly assign a given number of edges to given nodes)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages