some changes to colorGraph() and created new HashMap in Igraph for spills