clmclose can be used to fetch the connected components from a graph.
They will be returned as a clustering file.
Use this file in conjunction with mcxsubs and the graph file itself to retrieve individual subgraphs corresponding to connected components.