gRain's conditional probability tables have parent states as colnames and descendant states as rownames. - Had it in the transposed form.