The function routing would then return the shortest route from the start location to the end location,
going through at least 1 of the locations listed in chores_location.

start = 0
end = 1
chores_location = [2,3]

mygraph.routing(start, end, chores_location)
[0, 3, 0, 1]

image

Comments (0)