graph_metrics | R Documentation |
Given a graph, calculates node and edge metrics using functions from the igraph package
graph_metrics(x, metric = "page_rank", return.df = FALSE)
x |
a graph object or list of graphs |
metric |
a string indicating which metric to use; see details for options |
return.df |
logical; should a list of metrics be returned or a unified data frame |
optional metrics: page_rank, edge_betweenness, strength, alpha_centrality. See igraph help pages for details on each function. Note that if using edge betweenness, the inverse weight of the edges will be used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.