GraphCoordinates[g,options]
calculates a visually appealing 2D layout of the vertices of the graph g and returns the coordinates of the vertices.


GraphCoordinates
GraphCoordinates[g,options]
calculates a visually appealing 2D layout of the vertices of the graph g and returns the coordinates of the vertices.
Details and Options
- GraphCoordinates functionality is now available in the built-in Wolfram Language function GraphEmbedding.
- To use GraphCoordinates, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- GraphCoordinates returns the coordinates of the vertices as computed using a graph-drawing algorithm. This is useful when you need to draw a graph repeatedly using the same layout but different styles.
- GraphCoordinates accepts the same options as GraphPlot.
Examples
open all close allBasic Examples (2)
This gives the coordinates of the vertices in the previous drawing:
GraphCoordinates has been superseded by GraphEmbedding:
Scope (1)
Properties & Relations (1)
Possible Issues (1)
This shows the LayeredGraphPlot of a directed graph:
GraphCoordinates only returns the position of the vertices:
The curved edges between vertices 1 and 3 are not reproduced:
See Also
Tech Notes
Related Guides
-
▪
- Graph Utilities Package ▪
- Graphs & Networks ▪
- Graph Visualization ▪
- Computation on Graphs ▪
- Graph Construction & Representation ▪
- Graphs and Matrices ▪
- Graph Properties & Measurements ▪
- Graph Operations and Modifications ▪
- Statistical Analysis ▪
- Social Network Analysis ▪
- Graph Properties ▪
- Mathematical Data Formats ▪
- Discrete Mathematics
Text
Wolfram Research (2007), GraphCoordinates, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html.
CMS
Wolfram Language. 2007. "GraphCoordinates." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html.
APA
Wolfram Language. (2007). GraphCoordinates. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html
BibTeX
@misc{reference.wolfram_2025_graphcoordinates, author="Wolfram Research", title="{GraphCoordinates}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_graphcoordinates, organization={Wolfram Research}, title={GraphCoordinates}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html}, note=[Accessed: 16-August-2025]}