Some linear algebra problems arising in the analysis of complex networks