Added edge count for partial matrix