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.

param type gw.set param(node v, param type x)<br />

void gw.set param(list& L, param type x)<br />

Default Parameters<br />

sets the value of parameter param for node v to<br />

x. and returns its previous value.<br />

sets the value of parameter param for all nodes in<br />

L to x.<br />

param type gw.get node param( ) returns the current default value of parameter<br />

param.<br />

param type<br />

gw.set node param(param type x, bool apply = true)<br />

sets the default value of parameter param to x.<br />

and returns its previous value. If apply == true<br />

the parameter is changed for all existing nodes as<br />

well.<br />

d) Edge Parameters<br />

Individual Parameters<br />

param type gw.get param(edge e) returns the value of parameter param for edge e.<br />

param type gw.set param(edge e, param type x)<br />

void gw.set param(list& L, param type x)<br />

Default Parameters<br />

sets the value of parameter param for edge e to x.<br />

and returns its previous value.<br />

sets the value of parameter param for all edges in<br />

L to x.<br />

param type gw.get edge param( ) returns the current default value of parameter<br />

param.<br />

param type<br />

gw.set edge param(param type x, bool apply = true)<br />

sets the default value of parameter param to x.<br />

and returns its previous value. If apply == true<br />

the parameter is changed for all existing edges as<br />

well.<br />

e) Global Options<br />

int gw.set gen nodes(int n) sets the default number of nodes n for all graph<br />

generator dialog panels.

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

Saved successfully!

Ooh no, something went wrong!