From 5d8288c0a78a67539684d813156704729c76a6f9 Mon Sep 17 00:00:00 2001 From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Tue, 10 Jan 2023 08:32:31 -0500 Subject: [PATCH] direct to points --- graph.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/graph.py b/graph.py index 3648c9b..2d9a7a3 100644 --- a/graph.py +++ b/graph.py @@ -220,3 +220,12 @@ def linker(points): break return direct + + +def delinker(route: list) -> list: + output = [] + + for i in range(len(route)): + output.append((route[i], route[(i + 1) % len(route)])) + + return output -- 2.54.0