use edge counter instead of recalculation for getting number of out-edges