Computing the structural influence matrix for biological systems