Improve scalability of centrality computation using sparse matrix