Make a network based on measures of centrality.

calculate_centrality(dataset, from, to, directed = TRUE, damping = 0.85)

Arguments

dataset

A tibble where each row is a separate post.

from

Person retweeting e.g. sender

to

Person being retweeted e.g. original_author

directed

Whether graph should be directed or undirected

damping

Passed to page_rank for damping factor

Value

a list of edges - for make_retweet_network function - and user data - a table of metrics