WLJS LogoWLJS Notebook

GraphEmbedding

GraphEmbedding[g] 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".

Examples

GraphEmbedding[CompleteGraph[5]]
GraphEmbedding[PetersenGraph[5, 2], "CircularEmbedding"]

Please visit the official Wolfram Language Reference for more details.

On this page