total_energy now has a `get_total_energy` function.
remove 'name' from nodes.