centrality_dmnc: Density of Maximum Neighborhood Component (DMNC)

View source: R/centrality.R

centrality_dmncR Documentation

Density of Maximum Neighborhood Component (DMNC)

Description

Edge count divided by max component size^1.5 in the neighborhood subgraph.

Usage

centrality_dmnc(x, mode = "all", dmnc_epsilon = 1.7, ...)

Arguments

x

Network input (matrix, igraph, network, cograph_network, tna object).

mode

For directed networks: "all" (default), "in", or "out".

dmnc_epsilon

Numeric. Epsilon exponent for DMNC. Default 1.7 as recommended by Lin et al. (2008). centiserve uses 1.67 (four-community assumption). Must be between 1 and 2.

...

Additional arguments passed to centrality (e.g., normalized, weighted, directed).

Value

Named numeric vector of DMNC values.

See Also

centrality for computing multiple measures at once, centrality_mnc for the size-only variant.

Examples

adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_dmnc(adj)

cograph documentation built on May 31, 2026, 5:06 p.m.