R/Main_functions.R
restrict_network_degree.RdLimit the number of edges per node within a network
restrict_network_degree(df_corr, source = "name_1", target = "name_2", nmax = NULL, strict = TRUE)
| 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 |
a network with a maximum degree lower than nmax