extract_LCC | R Documentation |
Extract LCC from a graph
extract_LCC(g)
g |
is the graph you want to extract the largest connected component |
a graph (from igraph) with only the largest connected component
set.seed(12) x = data.frame(n1 = sample(LETTERS[1:5]), n2 = sample(LETTERS[1:20])) g = igraph::graph_from_data_frame(x, directed = FALSE) g = igraph::simplify(g) LCC = extract_LCC(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.