Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
reverse
Returns the reverse directed graph of G.
G (directed graph) – A NetworkX directed graph
copy (bool) – If True, then a new graph is returned. If False, then the graph is reversed in place.
H – The reversed G.
directed graph