Representation of biological interactions in an ecosystem, in which species (nodes) are connected by pairwise interactions (links) that can be trophic or symbiotic.