factor_graph is created