Skip to contents

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)