Skip to contents

Creates a weighted Erdös-Rényi network with the given size and average degree and i.i.d. edge weights. The weight distribution is specified by a vector of weights and a vector of corresponding probabilities.

Usage

erdos_renyi_weightednetwork(size, avg_degree, weights, probabilities)

Arguments

size

number of nodes

avg_degree

average number of neighbour each node has

weights

edge weights

probabilities

edge weight probabilities, must be same length as weights

Value

a network object