简单问题:G 是带边的有向图
a->b a->c c->d
它存储在 Python 字典中
G={'a':['b','c'], c:['d']}
我想要a和d之间的路径,d和a之间的路径,b和d之间的路径等等。
graph directed-graph python-3.x
directed-graph ×1
graph ×1
python-3.x ×1