Suppose G′∈UHC, with Hamiltonian cycle C′.
Step 1 — the triples are traversed consecutively. Let v∈V. The vertex vmid has degree 2 in G′: its only neighbours are vin and vout (the construction gives it no other edge). A Hamiltonian cycle passes through vmid using exactly two incident edges, and since only two exist it uses both. So C′ contains the segment vin−vmid−vout (in one of the two directions).
Step 2 — the direction is uniform. Fix a direction of travel along C′. By Step 1, in each triple C′ enters at vin and leaves at vout, or the reverse. Without loss of generality (reversing the direction of travel if needed) some triple is entered at vin. We show all are: the edge following vout in C′ is not internal to the triple, so it has the form voutuin — the only edges leaving an out vertex go to in vertices. So the next triple is likewise entered at uin. By induction along the cycle, every triple is traversed as in→mid→out.
Step 3 — reading off the directed cycle. Let v(1),v(2),…,v(n) be the order of the triples along C′. By Step 2, between the triple of v(t) and that of v(t+1), C′ uses the edge vout(t)vin(t+1). Edges of this kind exist only when v(t)v(t+1)∈E — that is how E′ was defined. So v(t)→v(t+1) is a directed edge of G for every t, and so is v(n)→v(1) (the closing edge).
Since C′ is Hamiltonian in G′, each triple occurs exactly once, so v(1),…,v(n) are all vertices of V, each once. Hence v(1)→⋯→v(n)→v(1) is a directed Hamiltonian cycle in G, i.e. G∈DHC.