find_connected_components {fullRankMatrix} | 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)))