【发布时间】:2020-10-12 16:39:49
【问题描述】:
假设我有一个图表 -
graph = { "a" : ["c"],
"b" : ["c", "e"],
"c" : ["a", "b", "d", "e"],
"d" : ["c"],
"e" : ["c", "b"],
"f" : []
}
【问题讨论】:
-
没有一种正确的方法可以做到这一点,但我过去使用过 Graphviz:pypi.org/project/graphviz
标签: python python-3.x data-structures graph shortest-path