C-Sharp-Algorithms
C-Sharp-Algorithms copied to clipboard
Add customized edge weight support for graphs.
Original implementation only supports long
as edge weights.
This PR allows customized edge weight types while keeps default edge weight type as long/Int64.
Hi @zmy,
Thanks for your contribution. Can you please refactor the tests to reflect your changes?
Cheers, Ahmad
Hi @zmy,
Thanks for your contribution. Can you please refactor the tests to reflect your changes?
Cheers, Ahmad
Sure I am refactoring the tests, will add new commits soon :D
@aalhour It seems that some unit tests themselves are not well written. When running all the tests on my local machine, only the following two tests are related to graph data structure and failed:
- public static class GraphsBellmanFordShortestPaths
- GraphsUndirectedWeightedDenseGraphTest
Hello @zmy,
Sorry for the late reply, I was away on a long vacation. Can you maybe fix these two graphs tests?
@aalhour Sorry for the late reply. I've just fixed related tests. Please take a look.
Hi @zmy, any updates on this?
Hi @zmy, any updates on this?
Hi @aalhour , sorry for the late reply since I'm crazy busy. I've simplified the implementation as you requested. Please take a look.