(optional) a style
A list of coordinates of the positions of the vertices in the given drawing style. If the vertex positions for the given style are not set before, the empty list is returned.
The style s can be any one of fixed, circular, tree, bipartite, spring, planar, user, or default. If no style is specified, the default drawing style of the graph is used.
vp ≔ GetVertexPositions⁡CycleGraph⁡9
G ≔ Graph⁡Trail⁡0,1,2,3,4,5,6,7,8,9,1,Trail⁡4,0,7
G≔Graph 1: an undirected unweighted graph with 10 vertices and 12 edge(s)
We will disguise the Petersen graph by drawing it using the spring option and make those vertex positions the default.
P ≔ PetersenGraph⁡
P≔Graph 2: an undirected unweighted graph with 10 vertices and 15 edge(s)
S ≔ GetVertexPositions⁡P,style=spring
Q ≔ CopyGraph⁡P
Q≔Graph 3: an undirected unweighted graph with 10 vertices and 15 edge(s)
Download Help Document
What kind of issue would you like to report? (Optional)