def allocate_map_coloring(self, tolerance = <NUM_LIT:0.1>):
clusters = self.allocate_color_clusters(tolerance);<EOL>number_oscillators = len(self._dynamic[<NUM_LIT:0>]);<EOL>coloring_map = [<NUM_LIT:0>] * number_oscillators;<EOL>for color_index in range(len(clusters)):<EOL><INDENT>for node_index in clusters[color_index]:<EOL><INDENT>coloring_map[node_index] = color_index;<EOL><DEDENT><DEDENT>return coloring_map<EOL>
!
        @brief Allocates coloring map for graph that has been processed.

        @param[in] tolerance (double): Defines maximum deviation between phases.

        @return (list) Colors for each node (index of node in graph), for example [color1, color2, color2, ...].