def _parse_txtinfo(self, data):
graph = self._init_graph()<EOL>for link in data:<EOL><INDENT>graph.add_edge(link['<STR_LIT:source>'],<EOL>link['<STR_LIT:target>'],<EOL>weight=link['<STR_LIT>'])<EOL><DEDENT>return graph<EOL>
Converts the python list returned by self._txtinfo_to_python()
to a NetworkX Graph object, which is then returned.