davecom / SwiftGraph

A Graph Data Structure in Pure Swift
Apache License 2.0
758 stars 80 forks source link

Fix ambiguous use of 'addEdge(from:to:directed:)' on Int graphs #44

Closed ferranpujolcamins closed 6 years ago

ferranpujolcamins commented 6 years ago

Both addEdge methods have the same signature when the Vertex type parameter is Int. Sadly this can only be fixed with an api-breaking change. I have renamed the parameters of the method adding an edge by index.

davecom commented 6 years ago

@ferranpujolcamins Thank you very much; I was afraid of breaking the API for way too long; you were right to do so.