Skip to contents

Creates a network in which nodes have the degrees specified and numbers of triangles specified using an implementation of the algorithm by Serrano & Boguñá, 2005, Phys. Rev. E 72, 036133.

Usage

configmodel_clustered_network(
  degrees,
  beta,
  alpha = NULL,
  ck = NULL,
  triangles = NULL
)

Arguments

degrees

a vector of length \(N\) listing the degrees of all nodes

beta

parameter that defines degree class probabilities \(P(k)\)

alpha

set \(c(k)=0.5*(k-1)^\alpha\)

ck

arbitrary function \(c(k)\) for the probability that if \(b\), \(c\) are neighbours of \(a\), then \(b\) and \(c\) are neighbours.

triangles

number of triangles overlapping nodes of degree 0, 1, 2, ...,

Value

a network object