結果 : bellman ford algorithm simple implementation