Matrices and Graphs in Geometry