Skip to content

Commit

Permalink
prettier printing
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphuettl committed Mar 19, 2020
1 parent 43430ed commit 1ef3d28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dot_find_cycles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ef3d28

Please sign in to comment.