Basic graph class.