Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Operations and Modifications > ReverseGraph >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Operations and Modifications > ReverseGraph >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Constructing Graphs > Graph Operations and Modifications > ReverseGraph >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF