scale scale(g,s) --- rescale the embedding of g by s
sgf sgf --- simple graph format: a 2-column matrix representation
springxy springxy(g) --- find a spring embedding of g
SOURCE CODE
0001 function z = getxy(g)
0002 % getxy(g) --- give g's embedding (or [] if g doesn't have one)
0003
0004
0005 global GRAPH_MAGIC
0006
0007 if (hasxy(g))
0008 z = GRAPH_MAGIC.graphs{g.idx}.xy;
0009 else
0010 z = [];
0011 end