Rejecting isomorphisms from collection of graphs

前端 未结 6 1450
刺人心
刺人心 2020-12-30 03:06

I have a collection of 15M (Million) DAGs (directed acyclic graphs - directed hypercubes actually) that I would like to remove isomorphisms from. What is the common algorith

6条回答
  •  爱一瞬间的悲伤
    2020-12-30 04:01

    If all your graphs are hypercubes (like you said), then this is trivial: All hypercubes with the same dimension are isomorphic, hypercubes with different dimension aren't. So run through your collection in linear time and throw each graph in a bucket according to its number of nodes (for hypercubes: different dimension <=> different number of nodes) and be done with it.

提交回复
热议问题