working on graph concepts