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.

void parser.add graph done rule(gml graph rule f)<br />

void parser.add node done rule(gml node rule f)<br />

void parser.add edge done rule(gml edge rule f)<br />

4. Implementation<br />

adds graph rule f to parser. During parsing f is called whenever<br />

an object o with path graph and type gml list is encountered.<br />

f is called after all objects in the list of o are<br />

parsed.<br />

adds node rule f to parser for path graph.node and value type<br />

gml list. f is called after all objects in the corresponding list<br />

are parsed.<br />

adds edge rule f to parser for path graph.edge and value type<br />

gml list. f is called after all objects in the corresponding list<br />

are parsed.<br />

<strong>The</strong> data type gml graph is realized using lists and maps. It inherits from gml parser<br />

which uses gml object, gml objecttree, and gml pattern. gml pattern uses dictionaries.

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

Saved successfully!

Ooh no, something went wrong!