'Returns a generator that yields node dictionaries in the form:
{ \'id\': <the nodes unique id>, \'data\': <any additional node data> }'

def gen_node_dicts(self):

    for (node_id, node) in self.nodes.items():
        (yield {'id': node_id, 'data': node.data})
