GraphTheory - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Graph Theory : GraphTheory Package : GraphTheory/SetVertexPositions

GraphTheory

  

SetVertexPositions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SetVertexPositions(G, vp)

Parameters

G

-

graph

vp

-

list of pairs of numbers

Description

• 

SetVertexPositions('G', 'vp') sets the vertex positions of the graph G for graph drawing.  The vertex positions should be input in the format [[x1,y1],[x2,y2],...,[xn,yn]].

Examples

withGraphTheory:

GGraph`$`1..6,1,2,1,4,4,5,2,5,2,3,3,6,5,6

GGraph 1: an undirected unweighted graph with 6 vertices and 7 edge(s)

(1)

DrawGraphG

vp0,0,0.5,0,1,0,0,0.5,0.5,0.5,1,0.5:

SetVertexPositionsG,vp:

DrawGraphG

See Also

DrawGraph

GetVertexPositions