gives the reverse graph of the directed graph g.


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.


open allclose all

Basic Examples  (1)

The reverse graph of a directed graph:

Scope  (6)

ReverseGraph does not affect undirected graphs:

ReverseGraph works with directed graphs:


Mixed graph:

Use rules to specify the graph:

ReverseGraph works with large graphs:

Properties & Relations  (3)

ReverseGraph has the same VertexList as the original graph:

ReverseGraph is equivalent to reversing edges:

The adjacency matrix of a reverse graph is the transpose of the matrix of the original graph:

Introduced in 2010
Updated in 2014