Skip to content

Commit c3d23e5

Browse files
committed
fixed endpoint comparison bug
Signed-off-by: Haoyue Dai <[email protected]>
1 parent 446b9a2 commit c3d23e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

causallearn/graph/Endpoint.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ class Endpoint(Enum):
1818
# Prints out the name of the type
1919
def __str__(self):
2020
return self.name
21+
22+
def __eq__(self, other):
23+
return self.name == other.name

0 commit comments

Comments
 (0)