curtisbright / PhysicsCheck

Other
0 stars 2 forks source link

Isomorphism checking error #20

Closed curtisbright closed 1 year ago

curtisbright commented 1 year ago

checking solutions are unique up to isomorphism... Traceback (most recent call last): File "/home/cbright/PhysicsCheck_cbright/non_iso_verify.py", line 46, in verify(sys.argv[1], sys.argv[2]) File "/home/cbright/PhysicsCheck_cbright/non_iso_verify.py", line 31, in verify hash = get_hash(G) File "/home/cbright/PhysicsCheck_cbright/non_iso_verify.py", line 20, in get_hash return nx.weisfeiler_lehman_graph_hash(G) AttributeError: module 'networkx' has no attribute 'weisfeiler_lehman_graph_hash'

BrianLi009 commented 1 year ago

I tried to run it on my end and did not get this error. It could be a networkx version issue. What is the version of NetworkX you are using?

curtisbright commented 1 year ago

$ pip3 list | grep networkx networkx 2.4

BrianLi009 commented 1 year ago

pip3 list | grep networkx networkx 2.6.3

I'll specify the version in dependency-setup.sh, will look into exactly which versions have this.

BrianLi009 commented 1 year ago

It's introduced in version 2.5, so any version newer than that should work:

https://networkx.org/documentation/stable/release/release_2.5.html