correct calculation of colors of sampled nodes. not sampled nodes are colored gray to highlight the sampling