This is the description of the graph package.
Separate out the input graph into subgraphs, where each subgraph is an disconnected island in the input graph. If the input graph is fully connected, only one result is returned.
the input graph
an array of graphs each of which is contains an island within the input