mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-09-16 17:10:39 +03:00
Merge d83f9bd07b
into 40d5d2edcc
This commit is contained in:
@@ -190,7 +190,7 @@ class UserGraphService(object):
|
|||||||
# Reverse the list since we iterated backwards
|
# Reverse the list since we iterated backwards
|
||||||
return path_ids[::-1]
|
return path_ids[::-1]
|
||||||
|
|
||||||
def _shortest_path(self, source_key, dest_key, path):
|
def _shortest_path(self, source_key, dest_key):
|
||||||
# Use the id to get the Person
|
# Use the id to get the Person
|
||||||
source = self.person(source_key)
|
source = self.person(source_key)
|
||||||
# Update our bfs queue
|
# Update our bfs queue
|
||||||
|
Reference in New Issue
Block a user