mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Fix compilation error in graph_challenge notebook (#172)
This commit is contained in:
parent
96b01d00ff
commit
d60f4a904c
|
@ -124,10 +124,10 @@
|
|||
" self.adj_weights = {} # Key = Node, val = weight\n",
|
||||
"\n",
|
||||
" def __repr__(self):\n",
|
||||
" return str(self.id)\n",
|
||||
" return str(self.key)\n",
|
||||
"\n",
|
||||
" def __lt__(self, left, right):\n",
|
||||
" return left.id < right.id\n",
|
||||
" def __lt__(self, other):\n",
|
||||
" return self.key < other.key\n",
|
||||
"\n",
|
||||
" def add_neighbor(self, neighbor, weight=0):\n",
|
||||
" # TODO: Implement me\n",
|
||||
|
|
Loading…
Reference in New Issue
Block a user