The value of off diagonal elements is
which is connected between bus i and bus j with negative sign
sum of admittances connected at bus j
sum of admittances connected at bus i
which is connected between bus i and bus j with positive sign
Answer : which is connected between bus i and bus j with negative sign