graph_metrics: Calculate node and edge metrics

View source: R/functions.R

graph_metricsR Documentation

Calculate node and edge metrics

Description

Given a graph, calculates node and edge metrics using functions from the igraph package

Usage

graph_metrics(x, metric = "page_rank", return.df = FALSE)

Arguments

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

Details

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.


elizagrames/redyarn documentation built on June 16, 2022, 2:54 p.m.