Added base graph implementation