overlapping graphs solution