NetworkX

Previous topic

networkx.MultiGraph.copy

Next topic

networkx.MultiGraph.subgraph

Quick search

networkx.MultiGraph.to_directed

MultiGraph.to_directed()

Return a directed representation of the graph.

A new multidigraph is returned with the same name, same nodes and with each edge (u,v,data) replaced by two directed edges (u,v,data) and (v,u,data).