Question: You will be given a list size n = 5 ( five nodes ) num _ nodes = self. _ g . get _ numV

You will be given a list size n=5(five nodes)
num_nodes = self._g.get_numV()
for i in range(num_nodes):
self._path.append(-1) # -1 is infinite cost
self._path[start_city]=0 # start city to start city is 0
DO NOT PRINT ANYTHING
YOU MUST SEE LIKE THIS
You will be given a list size n = 5 ( five nodes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!