GrafRenderer

class graf.GrafRenderer(outputfile)[source]

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

Version: 1.0.

__init__(outputfile)[source]

Create an instance of a GrafRenderer.

render_ann(a)[source]

Used to render the annotation elements of the Graph.

render_edge(e)[source]

Used to render the edge elements of the Graph.

render_feature(name, value)[source]

Used to render the features elements of the Graph.

render_fs(fs)[source]

Used to render the feature structure elements of the Graph.

Used to render the link elements of the Graph.

render_node(n)[source]

Used to render the node elements of the Graph.

render_region(region)[source]

Used to render the region elements of the Graph.

write_header(g)[source]

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

write_header_elements(g)[source]

Helper method for write_header.