adds the automatic generation of graphs