ReverseGraph

ReverseGraph[g]

gives the reverse graph of the directed graph g.

ReverseGraph[{vw,}]

uses rules vw to specify the graph g.

Details and Options

  • The reverse graph has the same vertices as g and the reverse edges.
  • ReverseGraph works with directed graphs, multigraphs, and mixed graphs.

Examples

open allclose all

Basic Examples  (1)

The reverse graph of a directed graph:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Properties & Relations  (3)

See Also

DirectedGraph  UndirectedGraph

Introduced in 2010
(8.0)
| Updated in 2015
(10.3)