adding the graph and colored graph