Description Usage Arguments Details Examples
The owner of a particular Twitter handle might want to increase his/her standing in a particular conversation through targeted engagement with specific handles. Given a graph metric to optimize, this function suggests new interactions that will yield the greatest improvements.
1 2  | suggest_edge_series(g, n1, metric, num_steps, search_list = NULL,
  verbose = TRUE, uniq_n2 = TRUE)
 | 
g | 
 A graph object  | 
n1 | 
 The name of the prospective retweeter  | 
metric | 
 Graph metric to optimize  | 
num_steps | 
 Number of iterations to perform  | 
search_list | 
 List of possible targets to search over (defaults to V(g), but choosing a shorter list of high-influence nodes will speed the search considerably)  | 
verbose | 
 Verbose output?  | 
uniq_n2 | 
 Don't suggest the same partner more than once, even if repeated interactions would continue to boost your metric of choice.  | 
In general, this function is good for finding high-influence nodes that are relatively distant in the network from a node of interest.
TODO: I'm a little confused as to how I should export just one function from here!
1 2 3 4 5 6 7 8 9 10  | library(dplyr)
library(igraph)
g <- sample_tweets %>%
  ws_to_graph() %>%
  graph_lcc()
slist <- page.rank(g)$vector %>%
  sort(decreasing=TRUE) %>%
  head(100) %>%
  names()
new_g <- suggest_edge_series(g,'@USAID',betweenness,5,search_list=slist)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.