Structural stability of invasion graphs for generalized Lotka--Volterra systems