sort edges in StaticGraph in parallel