Switching order of determining neighbors and rasterization result.
Preparing flattening of graph.