Development of an emergy computation algorithm for complex systems using depth first search and track summing methods. (20th August 2018)