Note that
/** @return energy table for the graph */  
SGVector<float64_t> evaluate_energies() const;

What we are going to store is this table, not factor->get_data().