IGraph class