Added SimpleGraph class.