Solving Dijkstra's algorithm - passing costs / parents with two edges

后端 未结 0 1489
北恋
北恋 2021-01-20 21:48

I have a graph like this:

# graph table
graph = {}
graph[\'start\'] = {}
graph[\'start\'][\'a\'] = 5
graph[\'start\'][\'b\'] = 2

graph[\'a\'] = {}
graph[\'a\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题