Remove users from recommend_books

This commit is contained in:
MstrPikachu
2022-03-21 02:41:05 -04:00
parent d49d8ce067
commit e5fc89e76e
+1 -1
View File
@@ -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)