'Returns a generator that yields node dictionaries in the form::
\'source\': <the index of the source node in the graph\'s node list>,
\'target\': <the index of the target node in the graph\'s node list>,
\'data\'  : <any additional edge data>'

def gen_edge_dicts(self):

    for edge in self.edges:
        (yield {'source': edge.source_index, 'target': edge.target_index, 'data': edge.data})
