Commuting graphs of matrix algebras