parallelize node/edge generation