textnets.network.giant_component

textnets.network.giant_component(g: Graph) Graph[source]

Return the subgraph corresponding to the giant component.

Parameters:

igraph.Graph – The (possibly) disconnected graph.

Returns:

The graph consisting of just the largest connected component.

Return type:

igraph.Graph