working in graph