View source: R/igraph_functions.R
Given a data.table and a list containing edges and their attributes, creates a data.table that can be used to create the edges in an igraph graph
1 | make_edges_dt(dt, edge_info, same_e_attr_list = NULL)
|
dt: |
data.table containing columns for all the edges and edge attributes |
edge_info: |
named list, where the name is the edge type and each "to" and "from" refers to the columns in the dt to go from and to |
same_e_attr_list: |
named list where the name is the edge attributes to resolve and the associated character vector are the column names to be resolved from dt |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.