Keep only the biggest connected component of a graph

select_main_component(graph)

Arguments

graph

A tbl_graph object

Value

A tbl_graph with one component