Refactoring: Extract method for generating dot code that colors the nodes
Refactoring: Extract method on coloring of paths