Graph Isomorphism in CUDA - 3rd kernel