Add Graph class.