Fix graph definition