Connected graphs.
I currently wrote it so it loops through and adds edges from the first sub-graph to each of the next sub graphs. It write d edges between the two subgraphs.