📜  python有向图 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:44.535000             🧑  作者: Mango

代码示例1
Another library you could use is NetworkX. It provides a implementation 
of directed graphs that provide functions to get incomming 
edges DiGraph.in_edges() and outgoing edges DiGraph.out_edges() 
for arbitrary sets of nodes. Usage samples are provided in the 
linked documentation, but unfortunately I didn't see any details 
about efficiency or run time.