GraphTheory[GetVertexPositions]
|
Calling Sequence
|
|
GetVertexPositions(G)
GetVertexPositions(G, style=s)
|
|
Parameters
|
|
G
|
-
|
graph
|
s
|
-
|
(optional) a style
|
|
|
|
|
Description
|
|
•
|
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, user, or default. If no style is specified, the default drawing style of the graph is used.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
>
|
|
>
|
|
We will disguise the Petersen graph by drawing it using the spring option and make those vertex positions the default.
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
>
|
|
|
|
Download Help Document
Was this information helpful?