add permutation test, maybe random test more useful for large graph