largest_cc {diffuStats} | R Documentation

## Largest connected component

### Description

Obtain the largest connected component of an `igraph` object

### Usage

    largest_cc(g)

### Arguments

`g` | `igraph` object

### Value

A connected `igraph` object

### Examples

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

[Package diffuStats version 1.10.2 Index]