This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ReverseGraph

ReverseGraph[g]
gives the reverse graph of the directed g.
  • The reverse graph has the same vertices as g and the reverse edges.
The reverse graph of a directed graph:
The reverse graph of a directed graph:
In[1]:=
Click for copyable input
Out[1]=
ReverseGraph does not affect undirected graphs:
ReverseGraph works with directed graphs:
Works with large graphs:
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:
New in 8