The Yamal-Europe pipeline, which normally transports Russian gas into Europe, has shifted into reverse over the last week, triggering a row between Moscow and its western neighbors.

Instead of flowing into European markets, which are facing a winter heating crisis due to sky-high prices, gas has been flowing east into Poland and Ukraine, in a development that Russia blames on speculation by German firms.

Here's how the pipeline works: