Added base graph class