The Inversion of Matrices by Flow Graphs