A Topological Approach to Partitioning Flow Networks for Parallel Simulation