You do not even need a text editor to do that. In yEd, select the edges you want to reverse, then use "Tool" -> "Reverse Selected Edges".
Alternatively, you can switch the source and target arrow of selected edges in the properties view in yEd's lower right corner.