justcoding121 / advanced-algorithms

100+ algorithms & data structures generically implemented in C#
MIT License
1.31k stars 290 forks source link

FloydWarshallShortestPathOperators() (and others) not found #31

Closed AlzyPalzy closed 4 years ago

AlzyPalzy commented 5 years ago

Firstly, massive and heartfelt thanks for this great selection of algorithms I need to write my project. Been trying them out - saved me weeks of coding and testing.

For this (and the Dijkstra and possibly others) VS can't seem to locate the classes inherited from the abstract IShortestPathOperators in any of the using directives. I've tried quite a few. Not a massive problem as I copied the FloydWarshallShortestPathOperators class into my project from your online source code and all works well, but I figure you intended that they should be automatically available somewhere.

Anyway, thanks again, these are fantastic!

justcoding121 commented 5 years ago

It was intended to have the concrete implementation be provided by the developer to accommodate the datatypes/data structure used for distance. You could copy the one used in the unit test project if that matches your distance data type (I believe it is integer).