Added problem graph creation.