Sample a random but connected sub-component of a graph
See also
Other misc:
compare_heaps()
,
dodgr_flowmap()
,
dodgr_full_cycles()
,
dodgr_fundamental_cycles()
,
dodgr_insert_vertex()
,
dodgr_sflines_to_poly()
,
dodgr_vertices()
,
merge_directed_graph()
,
summary.dodgr_dists_categorical()
,
write_dodgr_wt_profile()
Examples
graph <- weight_streetnet (hampi)
nrow (graph) # 5,742
#> [1] 6813
graph <- dodgr_sample (graph, nverts = 200)
nrow (graph) # generally around 400 edges
#> [1] 403
nrow (dodgr_vertices (graph)) # 200
#> [1] 200