Adding node and edge counting
Remove predecessorsForNode now that it is only used once