Analytic Rank of Graph Algebras and Quantum Spaces