From e5fc89e76ec872513ad4490e37635338b9fe4230 Mon Sep 17 00:00:00 2001 From: MstrPikachu <31784486+MstrPikachu@users.noreply.github.com> Date: Mon, 21 Mar 2022 02:41:05 -0400 Subject: [PATCH] Remove users from recommend_books --- assignments/A3/a3_part1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignments/A3/a3_part1.py b/assignments/A3/a3_part1.py index fb045b5..2a0ed4d 100644 --- a/assignments/A3/a3_part1.py +++ b/assignments/A3/a3_part1.py @@ -231,7 +231,7 @@ class Graph: - limit >= 1 """ book = self._vertices[book] # vertex is more useful here - books = set(book.neighbours) # all books 1 <= distance <= 2 away from self + books = set() # all books distance == 2 away from self for neighbour in book.neighbours: books.update(neighbour.neighbours) books.remove(book)