woeking on graph