network flows + data structures