Added graph building