Skip to content

Commit

Permalink
== to is
Browse files Browse the repository at this point in the history
  • Loading branch information
worbit committed Mar 26, 2019
1 parent 908b992 commit f2b606c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __eq__(self, other):

def getEdgeAdjacentToVertex(self,v):
for edge in self.edges:
if edge.v2==v or edge.v1==v:
if edge.v2 is v or edge.v1 is v:
return edge
return None

Expand Down

0 comments on commit f2b606c

Please sign in to comment.