Learn R Programming

keyplayer (version 1.0.1)

mreach.closeness: Compute the M-reach Closeness Centrality Score in a Netwrok

Description

mreach.closeness refines the mreach.degree centrality by using the (inverse) geodistance as weights. The edge values should be properly interpreted as distances.

Usage

mreach.closeness(adj.matrix, node, M = Inf, binary = FALSE, cmode = "all")

Arguments

adj.matrix
Matrix indicating the adjacency matrix of the network.
node
Integer indicating the column index of the chosen player in the adjacenncy matrix. If not specified, scores for all nodes will be reported.
M
Number indicating the maximum geodistance between two nodes, above witch the two nodes are considered disconnected. M hence defines the reachable set. The default is Inf.
binary
If TRUE, the adjacency matrix is binarized. If FALSE, the edge values are considered.
cmode
String indicating the type of centrality being evaluated. "outdegree", "indegree", and "total" refer to indegree, outdegree, and (total) degree respectively. "all" reports all the above measures and i

Value

  • A vector indicating the outdegree, indegree, or total-degree cohesion score of the chosen player; or a data frame containing all the above information. Note that we normalize the outdegree and indegree scores to [0,1]. This means that the total-degree score is between [0,2].

Details

mreach.closeness refines the mreach.degree centrality by using the (inverse) geodistance as weights, just as closeness centrality refines degree centrality. The delimiting definition of neighborhoods given by M induces several flexible properties of the M-reach closeness centrality. It captures the degree centrality when M is properly set (e.g. M=1 in a binarized network). It captures the Gil-Schmidt power index (Gil and Schmidt, 1996) and the cohesion centrality (Borgatti, 2006) when M is sufficiently large (unconstrained). The normalization factor takes care of non-binary edge values interpreted as distances. Also note that the geodistance matrix does not necessarily to be symmetric, and thus the measure is directed. see An and Liu (2015) for more details.

References

An, Weihua and Yu-Hsin Liu (2015). "keyplayer: An R Package for Locating Key Players in Social Networks." Working Paper, Indiana Univeristy. Borgatti, Stephen P. (2006). "Identifying Sets of Key Players in a Network." Computational, Mathematical and Organizational Theory, 12(1):21-34. Gil, J and Schmidt, S (1996). "The Origin of the Mexican Network of Power." Proceedings of the International Social Network Conference, Charleston, SC, 22-25.

See Also

geodist; kpcent; kpset

Examples

Run this code
# Create a 5x5 weighted and directed adjacency matrix, where edge values
# represent the strength of tie
W <- matrix(
  c(0,1,3,0,0,
    0,0,0,4,0,
    1,1,0,2,0,
    0,0,0,0,3,
    0,2,0,0,0),
    nrow=5, ncol=5, byrow = TRUE)

# Transform the edge value to distance interpretaion
A <- W
A[W!=0] <- 1/W[W!=0]

# List all types of 2-reach closeness scores for every node
mreach.closeness(A,M=2,cmode="all")

Run the code above in your browser using DataLab