stub of graph implementation