The Shortest Way to the Goal - Optimization Methods in Networks