nested multiprocessing to implement random order in which edges and
nodes are traversed. the fastest wins