GrafRenderer

class graf.GrafRenderer(outputfile)

Renders a GrAF XML representation that can be read back by an instance of L{GraphParser}.

Version: 1.0.

__init__(outputfile)

Create an instance of a GrafRenderer.

render_ann(a)

Used to render the annotation elements of the Graph.

render_edge(e)

Used to render the edge elements of the Graph.

render_feature(name, value)

Used to render the features elements of the Graph.

render_fs(fs)

Used to render the feature structure elements of the Graph.

Used to render the link elements of the Graph.

render_node(n)

Used to render the node elements of the Graph.

render_region(region)

Used to render the region elements of the Graph.

write_header(g)

Writes the header tag at the beginning of the XML file.

write_header_elements(g)

Helper method for write_header.