coloring the graph based on perspective