Algorithms for the l ogical topol-ogy design in WDM all-optical networks