Can this breadth-first search be made faster?

后端 未结 4 2148
野的像风
野的像风 2021-02-09 23:28

I have a data set which is a large unweighted cyclic graph The cycles occur in loops of about 5-6 paths. It consists of about 8000 nodes and each node has from 1-6 (usually abou

4条回答
  •  轮回少年
    2021-02-09 23:33

    I'll bet that machine has more than one core, doesn't it? Run it in parallel.

    Python Threading

提交回复
热议问题