linkcomm
is an R
package that provides tools for generating, visualising, and analysing Link Communities in networks. See the companion paper for more information.
install.packages("linkcomm")
# Explore the in-built Les Miserables network: library(linkcomm) lm <- getLinkCommunities(lesmiserables)
# Visualize the communities: plot(lm, type = "graph", layout = "spencer.circle")
# Extract the nodes from the first community: n1 <- getNodesIn(lm, clusterids = 1) # Nodes shared by communities 10 and 11: ns <- get.shared.nodes(lm, comms = 10:11) # Node community centrality scores: nc <- getCommunityCentrality(lm) # Community connectedness scores: cc <- getCommunityConnectedness(lm)