Remember that a Feynman diagram shows the way that particles interact:

This example shows two protons repelling each other. Remember that a photon of an electromagnetic wave is the particle that carries the force for electromagnetic forces.

The other two particles are created from a W-. This is the particle responsible for the weak nuclear force.
This example is called beta decay, because the electron produced is ejected from the nucleus.
