| combine_edfs | R Documentation | 
Combine several edge data frames in the style of rbind(), except, it works
regardless of the number and ordering of the columns.
combine_edfs(...)
... | 
 Two or more edge data frames, which contain edge IDs and associated attributes.  | 
A combined edge data frame.
# Create an edge data frame (edf)
edf_1 <-
  create_edge_df(
    from = c(1, 1, 2, 3),
    to = c(2, 4, 4, 1),
    rel = "requires",
    color = "green",
    data = c(2.7, 8.9, 2.6, 0.6))
# Create a second edge data frame
edf_2 <-
  create_edge_df(
    from = c(5, 7, 8, 8),
    to = c(7, 8, 6, 5),
    rel = "receives",
    arrowhead = "dot",
    color = "red")
# Combine the two edge data frames
all_edges <- combine_edfs(edf_1, edf_2)
# View the combined edge data frame
all_edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.