Edges.add_to_etree¶
- Edges.add_to_etree(root: xml.etree.ElementTree.Element, overwrite: bool = True, cost_writer=None) None [source]¶
Add edge data to XML Element.
- Parameters
- rootElement
Element to which ‘edges’ will be appended to.
- overwritebool, default=True
If True, existing ‘edges’ Element in root will be deleted. If False, edge data will be appended to the existing data.
- cost_writer: callable, optional
Function that adds cost information for every edge. Will be called with
cost_writer(edge_node, index, overwrite)
whereedge_node
is xml Element,index
is int andoverwrite
= overwrite.