Scheduling and Flow-Related Problems in Networks: Algorithms and Complexity