A food web is the natural interconnection of food chains and a graphical representation of what-eats-what in an ecological community. Position in the food web, or trophic level, is used in ecology to broadly classify organisms as autotrophs or heterotrophs. This is a non-binary classification; some organisms (such as carnivorous plants) occupy the role of mixotrophs, or autotrophs that additionally obtain organic matter from non-atmospheric sources.
The linkages in a food web illustrate the feeding pathways, such as where heterotrophs obtain organic matter by feeding on autotrophs and other heterotrophs. The food web is a simplified illustration of the various methods of feeding that link an ecosystem into a unified system of exchange. There are different kinds of consumer–resource interactions that can be roughly divided into herbivory, carnivory, scavenging, and parasitism. Some of the organic matter eaten by heterotrophs, such as sugars, provides energy. Autotrophs and heterotrophs come in all sizes, from microscopic to many tonnes - from cyanobacteria to giant redwoods, and from viruses and bdellovibrio to blue whales.