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 gw.set edge index format(string s)<br />

sets the edge index format string s.<br />

bool gw.set edge border(bool b)<br />

sets the edge border flag to b.<br />

Animation and Zooming<br />

int gw.set animation steps(int s)<br />

move a node in s steps to its new position.<br />

bool gw.set flush(bool b) show operations on gw instantly (b=true) or not<br />

(b=false).<br />

double gw.set zoom factor(double f)<br />

bool gw.set zoom objects(bool b)<br />

bool gw.set zoom labels(bool b)<br />

f) Node and Edge Selections<br />

sets the zoom factor to f used when zooming from<br />

menu.<br />

resize nodes and edges when zooming (b == true)<br />

or not (b == false).<br />

resize labels when zooming (b == true) or not<br />

(b == false).<br />

void gw.select(node v) adds v to the list of selected nodes.<br />

void gw.select all nodes( ) selects all nodes.<br />

void gw.deselect(node v) deletes v from the list of selected nodes.<br />

void gw.deselect all nodes( ) clears the current node selection.<br />

bool gw.is selected(node v) returns true if v is selected and false otherwise.<br />

const list& gw.get selected nodes( )<br />

returns the current node selection.<br />

void gw.select(edge e) adds e to the list of selected edges.<br />

void gw.select all edges( ) selects all edges.<br />

void gw.deselect(edge e) deletes e from the list of selected edges.<br />

void gw.deselect all edges( ) clears the current node selection.

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

Saved successfully!

Ooh no, something went wrong!