The Layered-graph Algorithms for Static Routing and Wavelength Assignment Problem in WDM Networks