generate_ER: Simulating networks from the Erdos-Renyi model
Description
This function generates networks from the Erdős–Rényi model. In this model, the preferential attachment function is a constant function, i.e. \(A_k = 1\), and node fitnesses are all equal to \(1\). It is a wrapper of the more powerful function generate_net.
The output is a PAFit_net object, which is a List contains the following four fields:
graph
a three-column matrix, where each row contains information of one edge, in the form of (from_id, to_id, time_stamp). from_id is the id of the source, to_id is the id of the destination.
type
a string indicates whether the network is "directed" or "undirected".
PA
a numeric vector contains the true PA function.
fitness
fitness values of nodes in the network. The fitnesses are all equal to \(1\).
Arguments
N
Integer. Total number of nodes in the network (including the nodes in the seed graph). Default value is 1000.
num_seed
Integer. The number of nodes of the seed graph (the initial state of the network). The seed graph is a cycle. Default value is 2.
multiple_node
Positive integer. The number of new nodes at each time-step. Default value is 1.
m
Positive integer. The number of edges of each new node. Default value is 1.