Added pruned matrix multiplication in EntityGraph