powered by
Identify connected components of graph and add corresponding component column to data.frame.
component
data.frame
dodgr_components(graph)
Equivalent graph with additional component column, sequentially numbered from 1 = largest component.
A data.frame of edges
Other modification: dodgr_contract_graph(), dodgr_uncontract_graph()
dodgr_contract_graph()
dodgr_uncontract_graph()
graph <- weight_streetnet (hampi) graph <- dodgr_components (graph)
Run the code above in your browser using DataLab