Created method setInteractions
Added createFactorGraph method, changed createVariableNodes() to
loadVariableNodes, edited loadVariableNodes to return set of variables.