Description Usage Arguments Value Author(s) Examples
Computes the community
strength
/degree
centrality measure of each community in a network or computes the
strength
/degree
centrality measure of each community's connections to the other communities
1 |
A |
An adjacency matrix of network data |
comm |
A vector corresponding to the community each node belongs to |
weighted |
Is the network weighted?
Defaults to |
measure |
Type of measure to compute:
|
A vector of community strength/degree centrality values for each specified community in the network (larger values suggest more central positioning)
Alexander Christensen <alexpaulchristensen@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 | # Pearson's correlation only for CRAN checks
A <- TMFG(neoOpen, normal = FALSE)$A
comm <- igraph::walktrap.community(convert2igraph(abs(A)))$membership
#Strength
within.ns <- comm.str(A, comm, measure = "within")
between.ns <- comm.str(A, comm, measure = "between")
#Degree
within.deg <- comm.str(A, comm, weighted = FALSE, measure = "within")
between.deg <- comm.str(A, comm, weighted = FALSE, measure = "between")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.