View source: R/graph_functions_sf.R
split_graph_components | R Documentation |
Function to split the results of build_graph and build_graph_directed into their sub components
split_graph_components(graph_result)
graph_result |
A list typically obtained from the function build_graph or build_graph_directed |
A list of lists, the graph_result split for each graph component
data(mtl_network)
mtl_network$length <- as.numeric(sf::st_length(mtl_network))
graph_result <- build_graph(mtl_network, 2, "length", attrs = TRUE)
sub_elements <- split_graph_components(graph_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.