NetworkX

Previous topic

networkx.LabeledDiGraph.subgraph

Next topic

Algorithms

Quick search

networkx.LabeledDiGraph.reverse

LabeledDiGraph.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.