"CircularEmbedding" (Graph Layout Method)
"CircularEmbedding" (Graph Layout Method)
- Vertex layout for GraphLayout.
- Use circular embedding to lay out vertices of a graph.
Details & Suboptions
- The circular embedding is a graph drawing technique to position vertices of a graph on a circle.
- The circular embedding is typically used to lay out circle graphs.
- Possible settings to control the layout include:
-
"Offset" Automatic offset angle "OptimalOrder" True optimal vertex ordering to minimize edge crossings "Rotation" Automatic layout rotation
Examples
open all close allBasic Examples (1)
Options (3)
"Offset" (1)
"OptimalOrder" (1)
With the setting "OptimalOrder"->True, vertices are reordered so that they lie nicely on a circle:
edges = RandomSample[EdgeList[CycleGraph[20]], 20];
{Graph[edges, GraphLayout -> {"CircularEmbedding", "OptimalOrder" -> True}],
Graph[edges, GraphLayout -> {"CircularEmbedding", "OptimalOrder" -> False}]}