From 1ef3d280b399071587f66c9dad50b8ce5b134845 Mon Sep 17 00:00:00 2001 From: philipphuettl Date: Thu, 19 Mar 2020 11:35:47 +0100 Subject: [PATCH] prettier printing --- dot_find_cycles.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dot_find_cycles.py b/dot_find_cycles.py index 6ecf13f..fb94669 100755 --- a/dot_find_cycles.py +++ b/dot_find_cycles.py @@ -83,8 +83,9 @@ def main(): C = extract_node_labels(C, G) for i in C: - print(i) - + # append the first node again so that the cycle is complete + i.append(i[0]) + print(" -> ".join(i)) def remove_super_cycles(cycle_list): # sorting by length makes the search easier, because shorter cycles cannot be supercycles of longer ones