Compute network metrics
Function computing different network analysis metrics.
get_metrics( network, mode = "directed", weighted = TRUE, transfers = TRUE, metrics = c("degree", "closeness", "clusters", "betweenness"), clusters = c("cluster_fast_greedy", "cluster_infomap"), hubs = "all_clusters", options = list(degree = list(modes = c("in", "out", "total")), closeness = list(modes = "total"), betweenness = list(), cluster_fast_greedy = list(undirected = "collapse"), cluster_infomap = list(undirected = "collapse"), clusters = list(algos = c("cluster_fast_greedy", "cluster_infomap"), undirected = "collapse")) )
network
: the network to analyze. Must be an igraph, HospiNet or a square adjacency matrix (n*n).mode
: either "directed" or "undirected" network measuresweighted
: TRUE if the network is weightedtransfers
: TRUE if metrics specific to subject transfers must be computedmetrics
: list of the metrics to computeclusters
: choose between cluster algorithm: cluster_fast_greedy or cluster_infomaphubs
: choose between getting hubs from "all_clusters" or "global"options
: named list of options to be passed to the igraph functionsUseful links