Add Graph class