As of Version 10, all the functionality of the GraphUtilities package is built into the Wolfram System. >>


calculates a visually appealing 2D layout of the vertices of the graph g and returns the coordinates of the vertices.


  • 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.


open allclose all

Basic Examples  (2)

This plots a graph:

This gives the coordinates of the vertices in the previous drawing:

GraphCoordinates has been superseded by GraphEmbedding:

Scope  (1)

This plots a graph:

This gives the coordinates of the vertices in the previous drawing:

This plots the graph with two different styles, using the layout already calculated:

The relationship between vertices and coordinates is given by the following:

Properties & Relations  (1)

This shows a drawing of a small graph, and the coordinates associated with the drawing:

This shows the relationship between vertex labels and their coordinates:

The coordinates can be reused to create the drawing without recomputing:

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:

Interactive Examples  (1)

This shows how to travel from vertex 1 to 7 through the shortest path: