# GraphEmbedding

gives coordinates of the vertices of the graph g.

GraphEmbedding[g,"emb"]

gives coordinates of the vertices of the graph g using the embedding "emb".

GraphEmbedding[g,"emb",dim]

gives coordinates in dimension dim of the vertices of the graph g using the embedding "emb".

# Details • The settings for the embedding "emb" are the same as in GraphLayout.

# Examples

open allclose all

## Basic Examples(2)

Get the coordinates of the vertices of a graph:

Obtain coordinates in two dimensions and three dimensions for spring embedding:

## Scope(23)

GraphEmbedding works with undirected graphs:

Directed graphs:

Multigraphs:

Mixed graphs:

Get the coordinates of vertices using the "BalloonEmbedding":

"BipartiteEmbedding":

"CircularEmbedding":

"CircularMultipartiteEmbedding":

"DiscreteSpiralEmbedding":

"GridEmbedding":

"HighDimensionalEmbedding":

"LayeredEmbedding":

"LinearEmbedding":

"MultipartiteEmbedding":

"PlanarEmbedding":

"RandomEmbedding":

"SpectralEmbedding":

"SpiralEmbedding":

"SpringElectricalEmbedding":

"SpringEmbedding":

"StarEmbedding":

Get the coordinates of vertices in higher dimensions:

## Applications(3)

Visualize isomorphisms between two graphs:

Reorder coordinates based on the isomorphism:

Show a transformation of one graph to another one:

Generate a 3D plot of a graph:

Plot the graph using graphics primitives:

Highlight cliques and subgraphs:

Modify coordinates of the clique:

Show the graph and the highlighted clique:

## Properties & Relations(2)

Obtain vertex placement of graph layout:

Plot the graph using graphics primitives:

Use the option VertexCoordinates to get vertex coordinates:

Equivalent: