undirected_factor_model function

Create an undirected factor model graph