Skip to content

indentation #3

@euhruska

Description

@euhruska

when running on a small problem I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.9-x86_64/egg/Christofides/christofides.py", line 164, in compute
  File "build/bdist.macosx-10.9-x86_64/egg/Christofides/christofides.py", line 120, in Euler_Tour
UnboundLocalError: local variable 'edge' referenced before assignment

I looks like the lines 120-123 in Christofides/christofides.py are wrongly indented with the for loop, maybe they should be indented with if command above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions