Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

reversed

reversed(*args, **kwds)[source]

A context manager for temporarily reversing a directed graph in place.

This is a no-op for undirected graphs.

Parameters :

G : graph

A NetworkX graph.