pytsp icon indicating copy to clipboard operation
pytsp copied to clipboard

Infinite loop in line 146 if start is not a node in the graph

Open Carpetfizz opened this issue 7 years ago • 3 comments

There's an infinite loop here in line 146 if start is not a node in the graph.

In your README, matrix only has 3 nodes labeled 0, 1, and 2. Your example of starting with 10 causes the program to run forever.

Carpetfizz avatar Apr 22 '18 08:04 Carpetfizz

Hey @Carpetfizz

Was wondering did you manage to successfully install the packages/libraries properly? Would really appreciate your help on this!!

gao-xian-peh avatar Apr 22 '18 21:04 gao-xian-peh

Please use an updated __init__.py found here

Carpetfizz avatar Apr 22 '18 23:04 Carpetfizz

I believe the problem is more broad; it seems that pytsp hangs if "start" is not the first node of the graph.

RahulTirumalareddy avatar Apr 30 '18 10:04 RahulTirumalareddy