NetworkX

Previous topic

networkx.MultiDiGraph.copy

Next topic

networkx.MultiDiGraph.subgraph

Quick search

networkx.MultiDiGraph.to_undirected

MultiDiGraph.to_undirected()

Return an undirected representation of the digraph.

A new graph is returned with the same name and nodes and with edge (u,v,data) if either (u,v,data) or (v,u,data) is in the digraph. If both edges exist in digraph they appear as a double edge in the new multigraph.