grpah working