Identify connected components of graph and add corresponding component
column to data.frame
.
Value
Equivalent graph with additional component
column,
sequentially numbered from 1 = largest component.
See also
Other modification:
dodgr_contract_graph()
,
dodgr_uncontract_graph()
Examples
graph <- weight_streetnet (hampi)
graph <- dodgr_components (graph)
#> graph already has a component column