bugfix: loop may not run longer than pq size
bugfix: loop may not run longer than pq size

fmaschler/networkit,fmaschler/networkit,fmaschler/networkit,fmaschler/networkit,fmaschler/networkit,fmaschler/networkit