two graphs graph2 for all cases