fg.lccR Documentation

Get the largest connected component in a graph

Description

Get the largest (weakly or strongly) connected component in a graph.

Usage

fg.get.lcc(graph, mode = c("weak", "strong"))

Arguments

graph

The FlashGraph object

mode

Character string, either "weak" or "strong". For directed graphs "weak" implies weakly, "strong" strongly c components to search. It is ignored for undirected graphs.

Details

For an undirected graph, this function returns the largest connected component and ignores the argument ‘mode’.

Value

a FlashGraph object that contains the largest connected component in the graph.

Author(s)

Da Zheng <dzheng5@jhu.edu>