Calculo dos nodes generated