View source: R/compute_node_metric.R
| compute_node_metric | R Documentation |
The function computes graph-theoretic metric values at the node level.
compute_node_metric(
graph,
metrics = c("deg", "close", "btw", "str", "siw", "miw"),
weight = TRUE
)
graph |
An object of class |
metrics |
Character vector specifying the graph-theoretic metrics computed at the node-level in the graphs Graph-theoretic metrics can be:
By default, the vector |
weight |
Logical which indicates whether the links are weighted during
the calculation of the centrality indices betweenness and closeness.
(default: |
A data.frame with the node names and the metrics computed.
P. Savary
data(data_ex_genind)
mat_gen <- mat_gen_dist(x = data_ex_genind, dist = "DPS")
graph <- gen_graph_thr(mat_w = mat_gen, mat_thr = mat_gen,
thr = 0.8)
res_met <- compute_node_metric(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.