Limit the number of edges per node within a network

restrict_network_degree(df_corr, source = "name_1", target = "name_2",
  nmax = NULL, strict = TRUE)

Arguments

df_corr

a data.frame

source

column with source nodes

target

column with target nodes

nmax

integer, limits the number of edges per node

strict

logical, if TRUE, ensures a strict upper bound on the maximal degree

Value

a network with a maximum degree lower than nmax