Upper embeddability of graphs and products of transpositions associated with edges