Optimizing topology takes place first, then picking lowest weight nodes within the switches offering the best fit. bug 1979