largest_cc: Largest connected component

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Obtain the largest connected component of an igraph object

Usage

1

Arguments

g

igraph object

Value

A connected igraph object

Examples

1
2
3
4
library(igraph)
set.seed(1)
g <- erdos.renyi.game(30, p.or.m = .05)
largest_cc(g)

b2slab/diffuStats documentation built on Feb. 26, 2021, 2 p.m.