Initial graph implementation