-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indentation #3
Comments
Thanks for the information! Looking into it.
…On 21-Oct-2017 07:13, "Eugen Hruska" ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIbWHiHm8hjYC25YgfHqpfOXdDYr_IUQks5suUwrgaJpZM4QBZCm>
.
|
Its a bug. Its not working even for the test cases mentioned in graph.py |
SimonDeRidde has a pull request that works on that repository and fixes the bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when running on a small problem I get:
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.
The text was updated successfully, but these errors were encountered: