started new implementation of graph