View source: R/find_connected_components.R
find_connected_components | R Documentation |
The function performs a depths-first search to find all connected components.
find_connected_components(connections)
connections |
a list where each element is a vector with connected nodes. Each node must be either a character or an integer. |
a list where each element is a set of connected items.
find_connected_components(list(c(1,2), c(1,3), c(4,5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.