WOLFRAM

gives the reverse graph of the directed graph g.

ReverseGraph[{vw,}]

uses rules vw to specify the graph g.

Details and Options

  • ReverseGraph is also known as transpose graph or converse graph.
  • 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)Summary of the most common use cases

The reverse graph of a directed graph:

Out[1]=1

Scope  (6)Survey of the scope of standard use cases

ReverseGraph does not affect undirected graphs:

Out[1]=1

ReverseGraph works with directed graphs:

Out[1]=1

Multigraphs:

Out[1]=1

Mixed graph:

Out[1]=1

Use rules to specify the graph:

Out[1]=1

ReverseGraph works with large graphs:

Out[2]=2

Properties & Relations  (3)Properties of the function, and connections to other functions

ReverseGraph has the same VertexList as the original graph:

Out[1]=1

ReverseGraph is equivalent to reversing edges:

Out[2]=2

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

Out[2]=2
Wolfram Research (2010), ReverseGraph, Wolfram Language function, https://reference.wolfram.com/language/ref/ReverseGraph.html (updated 2015).
Wolfram Research (2010), ReverseGraph, Wolfram Language function, https://reference.wolfram.com/language/ref/ReverseGraph.html (updated 2015).

Text

Wolfram Research (2010), ReverseGraph, Wolfram Language function, https://reference.wolfram.com/language/ref/ReverseGraph.html (updated 2015).

Wolfram Research (2010), ReverseGraph, Wolfram Language function, https://reference.wolfram.com/language/ref/ReverseGraph.html (updated 2015).

CMS

Wolfram Language. 2010. "ReverseGraph." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/ReverseGraph.html.

Wolfram Language. 2010. "ReverseGraph." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/ReverseGraph.html.

APA

Wolfram Language. (2010). ReverseGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReverseGraph.html

Wolfram Language. (2010). ReverseGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReverseGraph.html

BibTeX

@misc{reference.wolfram_2025_reversegraph, author="Wolfram Research", title="{ReverseGraph}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ReverseGraph.html}", note=[Accessed: 08-July-2025 ]}

@misc{reference.wolfram_2025_reversegraph, author="Wolfram Research", title="{ReverseGraph}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ReverseGraph.html}", note=[Accessed: 08-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_reversegraph, organization={Wolfram Research}, title={ReverseGraph}, year={2015}, url={https://reference.wolfram.com/language/ref/ReverseGraph.html}, note=[Accessed: 08-July-2025 ]}

@online{reference.wolfram_2025_reversegraph, organization={Wolfram Research}, title={ReverseGraph}, year={2015}, url={https://reference.wolfram.com/language/ref/ReverseGraph.html}, note=[Accessed: 08-July-2025 ]}