NetworkX

Previous topic

networkx.DiGraph.subgraph

Next topic

MultiGraph

Quick search

networkx.DiGraph.reverse

DiGraph.reverse(copy=True)

Return the reverse of the graph

The reverse is a graph with the same nodes and edges but with the directions of the edges reversed.