Graph-theoretic method for integrated design and control