Refactored coloring of nodes
Finished recoloring of subgraphs