to_undirected#

to_undirected(graph)[源代码]#

返回图表的无向视图 graph .

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