Added a method to get energy lose in network