giant_component {OmnipathR} | R Documentation

## Giant component of a graph

### Description

For an igraph graph object returns its giant component.

### Usage

    giant_component(graph)

### Arguments

`graph` | An igraph graph object.

### Value

An igraph graph object containing only the giant component.

### Examples

    interactions <- import_post_translational_interactions()
    graph <- interaction_graph(interactions)
    graph_gc <- giant_component(graph)

[Package OmnipathR version 3.0.0 Index]