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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

string<br />

D.set message(string msg) sets the message that will be displayed on top of<br />

the drawing area of the window to msg .<br />

void D.set node color(color c) sets the color of all nodes of D to c.<br />

void D.set edge color(color c) sets the color of all edges of D to c.<br />

color D.get color(node v) returns the color of node v.<br />

color D.set color(node v, color c)<br />

sets the color of node v to c.<br />

color D.get color(edge e) returns the color of edge e.<br />

color D.set color(edge e, color c) sets the color of edge e to c.<br />

bool D.get arrow(edge e) returns true, if e will be painted with an arrow,<br />

false otherwise.<br />

bool<br />

void<br />

D.set arrow(edge e, bool ar)<br />

D.get d2 position(node array& d2pos)<br />

if ar is true, e will be painted with an arrow, otherwise<br />

without an arrow.<br />

returns the two-dimensional positions of the nodes<br />

of the graph of D in d2pos.

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

Saved successfully!

Ooh no, something went wrong!