Weighted graphs use compareTo for sorting edges. There should be a way to change the default behavior.
Weighted graphs use compareTo for sorting edges. There should be a way to change the default behavior.