public void colorizeNodes(Map<Node, Color> nodeColors){
        if(nodeColors == null) {
            return;
        }

        for (Map.Entry<Node, Color> nodeColor : nodeColors.entrySet()) {
            colorizeNode(nodeColor.getKey(), nodeColor.getValue());
        }
    }