gethub: Node centrality

Description Usage Arguments Examples

Description

get hub node.

Usage

1
gethub(g, com_fun)

Arguments

g

igraph object

com_fun

character: function name of igraph for community detection, "fastgreedy.community" or "cluster_louvain"

Examples

1
2
3
4
5
6
7
# sample data
data(cl_dat)
cormat <- cor(cl_dat[["3"]])
res <- cornet::corgraph(mat = cormat)
g <- res$undir.graph
reshub <- cornet::gethub(g=g, com_fun="fastgreedy.community")
#

shkonishi/cornet documentation built on May 30, 2019, 7:09 p.m.