Partitioning algorithms for signal flow graphs