Learn R Programming

cograph (version 2.0.0)

centrality_current_flow_closeness: Current Flow Closeness Centrality

Description

Information centrality based on electrical current flow through the network. Uses the pseudoinverse of the Laplacian matrix. Requires a connected graph.

Usage

centrality_current_flow_closeness(x, ...)

Value

Named numeric vector of current flow closeness values.

Arguments

x

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

...

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

See Also

centrality for computing multiple measures at once, centrality_closeness for the shortest-path variant.

Examples

Run this code
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_current_flow_closeness(adj)

Run the code above in your browser using DataLab