get_largest_component | R Documentation |
Get the indices of the vertices in the largest connected component of a graph from its adjacency matrix.
get_largest_component(adj_mat)
adj_mat |
An adjacency matrix of a graph. |
A vector of indices corresponding to the vertices in the largest connected component.
adj_mat <- matrix(c(0, 1, 0, 0, 0, 0, 0, 0, 0), nrow = 3) get_largest_component(adj_mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.