generate_energy_edges docstring