working on graph analysis