View source: R/node_edge_list.R
add_edge_ids | R Documentation |
The edges in an edge list can have ID numbers. This functions adds a column of edge ID numbers.
add_edge_ids(edge_list, edge_id = "edge_id")
edge_list |
the edge list to which edge ID numbers are to be added |
edge_id |
the name of the edge ID column in the outgoing edge list. (Default is " |
edge_list
with an added column containing the edge ID numbers.
library(tidyr)
library(matsbyname)
sutmats <- UKEnergy2000mats %>% spread(key = matrix.name, value = matrix)
# Suppress adding edge IDs
elDF <- edge_list(sutmats, edge_id = NULL)$`Edge list`[[1]]
add_node_ids(elDF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.