Added populate Dv and D for graph decomposition algorithm.