Text this: Network optimization: continuous and discrete models