From 0428a63b3843254890d478e94c1b03b7cad75f8b Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 4 Nov 2019 08:08:20 +0100 Subject: [PATCH] io --- src/io_tsp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io_tsp.py b/src/io_tsp.py index 9172de7..71e453c 100644 --- a/src/io_tsp.py +++ b/src/io_tsp.py @@ -59,6 +59,8 @@ class Instance: plt.figure(figsize=(8, 8)) plt.title(self.name) plt.scatter(self.points[:, 1], self.points[:, 2]) + for i, txt in enumerate(np.arange(self.nPoints)): # tour_found[:-1] + plt.annotate(txt, (self.points[i, 1], self.points[i, 2])) plt.show() @staticmethod