Improved way of keeping nodes in new gragh. TODO calculation dQ, weighted wdges, selection of partition.