Added Graph class to the project.