31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ool<br />

void<br />

void<br />

void<br />

TUTTE EMBEDDING(const graph& G, const list& fixed nodes,<br />

node array& xpos,<br />

node array& ypos)<br />

computes a convex drawing of the graph G if possible.<br />

<strong>The</strong> list fixed nodes contains nodes with prescribed coordinates<br />

already given in xpos and ypos. <strong>The</strong> computed<br />

node positions of the other nodes are stored in<br />

xpos and ypos, too. If the operation is successful, true<br />

is returned.<br />

SPRING EMBEDDING(const graph& G, node array& xpos,<br />

node array& ypos, double xleft,<br />

double xright, double ybottom, double ytop,<br />

int iterations = 250)<br />

computes a straight-line spring embedding of G in the<br />

given rectangular region. <strong>The</strong> coordinates of the computed<br />

node positions are returned in xpos and ypos.<br />

SPRING EMBEDDING(const graph& G, const list& fixed,<br />

node array& xpos,<br />

node array& ypos, double xleft,<br />

double xright, double ybottom, double ytop,<br />

int iterations = 250)<br />

as above, however, the positions of all nodes in the<br />

fixed list is not changed.<br />

D3 SPRING EMBEDDING(const graph& G, node array& xpos,<br />

node array& ypos,<br />

node array& zpos, double xmin,<br />

double xmax, double ymin, double ymax,<br />

double zmin, double zmax,<br />

int iterations = 250)<br />

computes a straight-line spring embedding of G in<br />

the 3-dimensional space. <strong>The</strong> coordinates of the computed<br />

node positions are returned in xpos, ypos, and<br />

zpos.<br />

int ORTHO EMBEDDING(const graph& G,<br />

const edge array& maxbends,<br />

node array& xcoord,<br />

node array& ycoord, edge array& xbends, edge array& ybends)<br />

Produces an orthogonal (Tamassia) embedding such<br />

that each edge e has at most maxbends[e] bends. Returns<br />

true if such an embedding exists and false otherwise.<br />

Precondition: G must be a planar 4-graph.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!