From b43532df3eb04e8e3bb0524202ae458195de9b59 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 11 Mar 2015 21:10:06 +0100 Subject: [PATCH] rc1 --- program/dawg/dawg.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/program/dawg/dawg.py b/program/dawg/dawg.py index feefcd0..aad2f75 100644 --- a/program/dawg/dawg.py +++ b/program/dawg/dawg.py @@ -98,11 +98,3 @@ class DAWG: for letter, state in transitions.items(): s += '{} -> {} [label="{}"]\n'.format(node, state, letter) return s + '}\n' - - -if __name__ == '__main__': - d = DAWG() - d.add_words(['abd', 'bad', 'bae']) -# d.add_words(['abcde', 'fghde', 'fghdghde']) - print repr(d.common_prefix('', d.v0)) - print d.to_dot(options='rankdir=LR') -- 2.20.1