printing factor graph creation