pub trait LargestConnectedComponent { // Required method fn largest_connected_component(&self) -> NodeSubgraph<Self> where Self: StaticGraphViewOps; }
Gives the large connected component of a graph. The large connected component is the largest (i.e., with the highest number of nodes) connected sub-graph of the network.
g.largest_connected_component()
A raphtory graph, which essentially is a sub-graph of the graph g
g