Bonacich (1987) writes a more generic centrality measure as:
a and b are exchanged in the above formula (compared to the original one) to be consistent with Katz centrality.
For more information about this formula, see:
Bonacich, P. Power and Centrality: A Family of Measures. American Journal of Sociology 92 (1987), 1170-1182.