The graph algorithms should be defined in a algorithms module which should then export the algorithms itself.
This way they all use the same predecessor map type etc...
As well as this the functionality can be better tested by writing tests for the algorithm implementations.
The graph algorithms should be defined in a algorithms module which should then export the algorithms itself. This way they all use the same predecessor map type etc... As well as this the functionality can be better tested by writing tests for the algorithm implementations.