longitudinal waves vibrate along the direction of energy transfer.
examples of longitudinal waves are sound waves, and some seismic waves.
sound waves consist of alternate compressions and rarefactions of the medium it travels through, which is why sound can't travel through a vacuum.
longitudinal waves are hard to draw graphically, but sometimes they are plotted as displacement against time, where they look like a transverse wave