Writhe of a link diagram (source code)

= Writhe of a link diagram
{title2=$w(D)$}

The writhe is the sum of the signs of all crossings in an oriented link diagram. It changes under the first <Reidemeister move> and is unchanged under the second and third moves.

Diagram writhe depends on the chosen projection; averaging it over projection directions gives the geometric <writhe>.