Assign Vertices to Connected Components
Usage
graph.connected.components(graph, stage = "final")
Arguments
- graph
A dgraph.
- stage
Stored graph stage.
Value
Integer vector of component IDs, one per vertex.
Examples
graph <- dgraph(list(2L, 1L, integer()))
graph.connected.components(graph)
#> [1] 1 1 3