Add flag to Bellman-ford