1. A method for designing an infrastructure to perform one or more tasks in an environment of resources comprising the steps of: determining one or more relations among the resources; constructing a graph representation of said relations and the resources; determining one or more paths through said graph representation wherein each of said paths represents a process for performing at least one of the tasks; and determining at least one group of those of said resources that lie along said one or more paths, said at least one group having a minimal risk.