to_directed#

to_directed(graph)[源代码]#

返回图形的定向视图 graph .

与graph相同。to_directed(as_view=true)注意graph.to_directed默认为 as_view=False 而这个函数总是提供一个视图。