Fix compilation error in graph_challenge notebook (#172)

This commit is contained in:
Gregory Mazzola 2017-04-10 03:35:58 -07:00 committed by Donne Martin
parent 96b01d00ff
commit d60f4a904c

View File

@ -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",