GraphEmbedding—Wolfram Language Documentation (original) (raw)
BUILT-IN SYMBOL
GraphEmbedding
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":
"RadialEmbedding":
"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:
Wolfram Research (2012), GraphEmbedding, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphEmbedding.html.
Text
Wolfram Research (2012), GraphEmbedding, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphEmbedding.html.
CMS
Wolfram Language. 2012. "GraphEmbedding." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GraphEmbedding.html.
APA
Wolfram Language. (2012). GraphEmbedding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphEmbedding.html
BibTeX
@misc{reference.wolfram_2025_graphembedding, author="Wolfram Research", title="{GraphEmbedding}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/GraphEmbedding.html}", note=[Accessed: 30-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_graphembedding, organization={Wolfram Research}, title={GraphEmbedding}, year={2012}, url={https://reference.wolfram.com/language/ref/GraphEmbedding.html}, note=[Accessed: 30-April-2025 ]}