Add graph definition