NetworkX

Previous topic

networkx.Graph.copy

Next topic

networkx.Graph.subgraph

Quick search

networkx.Graph.to_directed

Graph.to_directed()

Return a directed representation of the graph.

A new directed graph 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).