Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/c3py/poset.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def __eq__(self, __value: object) -> bool:
return self == __value

def __hash__(self) -> int:
return hash(nx.weisfeiler_lehman_graph_hash(self.G))
# for our purposes, we only care about the set of edges
return hash(frozenset(self.G.edges))

def link(self, a: str, b: str):
self.G.add_edge(a, b)
Expand Down