label_parallel_edges(): reduce memory usage for very large graphs

2 jobs for master in 78 minutes and 39 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #4904
amd64
job_clang_amd64

01:18:38

passed #4903
amd64
job_gcc_amd64

01:00:29