Add graph class