started graph implementation