# NOT RUN {
# Pearson's correlation only for CRAN checks
A <- TMFG(neoOpen, normal = FALSE)$A
comm <- igraph::walktrap.community(convert2igraph(abs(A)))$membership
#Weighted
result <- comm.close(A, comm)
#Unweighted
result <- comm.close(A, comm, weighted = FALSE)
# }
Run the code above in your browser using DataLab