Changed code to output the edge label.