Description Usage Arguments Value Examples
Retrieves the largest component. In case of equally sized components the first is component is retrieved.
1 |
adj |
numeric matrix representing the adjacency matrix. |
weights |
numeric vector of edge weights. Optional. |
mode |
character, either |
igraph |
logical specifying whether the output should be of class
|
A list containing the, now, named adjacency matrix and a numeric value indicating the size of the largest component relative to to the entire graph.
1 2 3 4 5 6 7 8 9 10 11 | # get fluency data
data(animal_fluency)
# edge list of fluency graph
edge_list = threshold_graph(animal_fluency[1:10])
# get adjacency matrix
adj = edg_to_adj(edge_list)
# get largest component
l_comp(adj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.