1: \begin{abstract}
2: A graphical expansion formula for non-commutative
3: matrix integrals with values in a finite-dimensional
4: real or complex
5: von Neumann algebra is obtained in terms of ribbon graphs
6: and their non-orientable counterpart called
7: M\"obius graphs. The contribution of
8: each graph is an invariant of the topological type of the surface
9: on which the graph is drawn.
10: As an example, we calculate the integral on
11: the group algebra of a finite group.
12: We show that
13: the integral is a generating function of
14: the number of homomorphisms from
15: the fundamental group of an arbitrary
16: closed surface into the finite
17: group.
18: The graphical expansion formula yields
19: a new proof of the classical
20: theorems of Frobenius, Schur and Mednykh on
21: these numbers.
22: \end{abstract}
23: