FLOWS IN COMPLEX NETWORKS: THEORY, ALGORITHMS, AND