Description Usage Arguments Value Examples

Extract LCC from a graph

1 | ```
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

1 2 3 4 5 6 7 | ```
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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.