// add main edge
if main_edge:
self.add(main_edge)
// attach text to edge
text = parse["text"]
self.hg.set_attribute(main_edge, "text", text)
// add extra edges
for edge in parse["extra_edges"]:
self.add(edge)
if main_edge.type()[0] == "R":
title_edge.append(main_edge)
else:
After Change
// add extra edges
for edge in parse["extra_edges"]:
yield wrap_edge(edge)
if main_edge.type()[0] == "R":
title_edge.append(main_edge)
else: