Circle Graph Layout Method - Maple Help

Circle Graph Layout Method

Options

 • center=[numeric, numeric]
 a point in the plane for the center of the circle. $\left[0,0\right]$ is the default.
 • phase=numeric
 the angle in radians at which to put the first vertex of the graph

Description

 • The circle layout method evenly spaces the vertices of the graph along a circle in order.
 • This layout method works in two dimensions only.

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $\mathrm{with}\left(\mathrm{SpecialGraphs}\right):$
 > $\mathrm{with}\left(\mathrm{RandomGraphs}\right):$
 > $G≔\mathrm{Graph}\left(\mathrm{undirected},\left\{\left\{1,2\right\},\left\{1,4\right\},\left\{2,3\right\},\left\{3,4\right\}\right\}\right)$
 ${G}{≔}{\mathrm{Graph 1: an undirected graph with 4 vertices and 4 edge\left(s\right)}}$ (1)
 > $\mathrm{DrawGraph}\left(G,\mathrm{layout}=\mathrm{circle}\right)$
 > $\mathrm{DrawGraph}\left(G,\mathrm{layout}=\mathrm{circle},\mathrm{layoutoptions}=\left[\mathrm{phase}=\frac{\mathrm{\pi }}{3}\right]\right)$