Number of edges connected to each node. For directed networks,
centrality_indegree counts incoming edges and
centrality_outdegree counts outgoing edges.
Usage
centrality_degree(x, mode = "all", ...)
centrality_indegree(x, ...)
centrality_outdegree(x, ...)Arguments
- x
Network input (matrix, igraph, network, cograph_network, tna object).
- mode
For directed networks:
"all"(default),"in", or"out".- ...
Additional arguments passed to
centrality(e.g.,normalized,weighted,directed).
See also
centrality for computing multiple measures at once,
centrality_strength for the weighted version.
