woking on graph