IGraph is added for mocking