incorporating delaunay function in graph class