Let’s imagine a competitive network with 2 plant species and 2 pollinator. Plants and pollinators interact mutualistically an comepte within guilds. The system can be represented by the following matrix and graph:
We want to calculate the structural stability of the system, also called \(\Omega(A)\). For that we can use the R function from (song2018?) that is the classic function to do the job:
One would note that in that function the matrix \(A\) is not used directly, but is used to calculate a variance-covariance matrix of a multivariate normal distribution. This variance-covariance matrix is \((A^{T}A)^{-1}\). The step \(A^{T}A\) produce a symmetric matrix, which is required for the matrix to be variance-covariance matrix, leading to: