added partitions for graph object - a method that returns all the disconnected sub-graphs in the graph