Reduce computation on node connection matrix