Graph
::plotCircleGraph
Plots a Graph in a circle layout
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
Graph::plotCircleGraph(G
, <PointSize = n
>, <SpecialVertices = [v_{1}, …,v_{n}]
>, <SpecialEdges = [e_{1}, …,e_{n}]
>, <EdgeColor = RGB
>, <SpecialEdgeColor = RGB
>, <SpecialVertexColor = RGB
>, <Vertex1Color = RGB
>, <Vertex2Color = RGB
>)
Graph::plotCircleGraph(G)
returns a plot::Group2d
object
in which the vertices are ordered in a circle (rightmost position
upwards). The first vertex is drawn in blue and the second in green.
All other vertices are drawn in red. The edges are drawn in red. The
width of the points is predefined with 40. If a vertex points to itself
it will be drawn outside
A random graph is created and plotted (your output may differ due random creation):
G1 := Graph::createRandomGraph(20, 10, Undirected): plot(Graph::plotCircleGraph(G1))
Next, a complete graph will be plotted.
G1 := Graph::createCompleteGraph(20): plot(Graph::plotCircleGraph(G1))
If some edges are to be emphasized they can be drawn in a special color:
G2 := Graph([1, 2, 3, 4, 5], [[1, 2], [2, 3], [3, 4], [4, 5], [1, 3], [1, 4], [1, 5]]): edges := [[1, 3], [1, 4]]: plot(Graph::plotCircleGraph(G2, SpecialEdges = edges, SpecialEdgeColor = RGB::Blue))









Defines the thickness in which the points are drawn. Default is 40. 

Defines a set of vertices. This option makes only sense if used
with the option 

Defines a set of edges. This option makes only sense if used
with the option 

Defines a color with which to draw the edges. Default is RGB::Red 

Defines a color to be used to draw the set of edges specified.
This option makes only sense if used with the option 

Defines a color with which to draw the vertices. If this option
is specified, the first two vertices are set to this color, too. They
must be specified via 

Defines a color to be used to draw the set of vertices specified.
This option makes only sense if used with the option 

Defines a color with which to draw the uppermost left (first) vertex with (the starting vertex). Default is RGB::Blue 

Defines a color with which to draw the second vertex with. Default is RGB::Green 