public interface ERModel extends NetworkModel
This model produces networks according to the Erdos-Renyi model as follows: Each network is chosen uniformly at random from the collection of all networks which have n nodes and m edges. This model generates undirected networks without loops.
You can either use the method configure(int, int, long)
present in the current interface or the general
configure
method from the NetworkModel
interface.
Modifier and Type | Method and Description |
---|---|
void |
configure(int numNodes,
int numLinks,
long seed)
Configures a model to produce a network with a given number of nodes and
links.
|
configure, generate, getConfiguration
void configure(int numNodes, int numLinks, long seed) throws org.apache.commons.configuration.ConfigurationException
numNodes
- number of nodes in the networknumLinks
- number of links in the networkseed
- the seed to be used by the random number generatororg.apache.commons.configuration.ConfigurationException