graph: fix coloring around octopus merges