Functions

BFS based bellman ford O(VE) but usually faster than bellman ford.