Skip to content
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

Only works for fully connected graphs #28

Open
jivjen opened this issue Apr 29, 2020 · 1 comment
Open

Only works for fully connected graphs #28

jivjen opened this issue Apr 29, 2020 · 1 comment

Comments

@jivjen
Copy link

jivjen commented Apr 29, 2020

Was trying to run the acopy solver for fully connected graphs and it works fine but throws a key error whenever the graph is not fully connected.

@andremtsilva
Copy link

Hi @rhgrant10 ,

I tried to use the custom class IncompleteGraphSolver from #21 and got the error:
NameError: name 'i' is not defined.

Then I change the iteration to properly get an ant from ants and got another error:
...line 231, in optimize
data.sort()
TypeError: '<' not supported between instances of 'Ant' and 'Ant'

I tried some more and changed the optimizer to not use the sort method and got another error:
line 274, in global_update
if edge in solution.path:
AttributeError: 'Ant' object has no attribute 'path'

Can you please point any direction? What am I missing here?
I really need acopy to work on an incomplete graph.

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants