added graph generation : forgot it before by mistake