Path coloring may refer to either the
WA problem or the
RWA problem. In the
wavelength assignment problem (or
WA problem), the input consists of a graph G and a
(multi)set of paths P already defined on G. The task is to assign colors to the paths in P such that any two paths sharing an edge in G receive different colors. This formulation is equivalent to
vertex coloring the
conflict graph of P, which has one vertex for each path in P and an edge between two vertices whenever the corresponding paths share an edge in G. In the
routing and wavelength assignment problem (also
wavelength routing problem or
RWA problem), the input consists of a graph G and a set of
requests R, where each request is a pair of nodes to be connected. For each request, the algorithm must both select a path connecting the two endpoints and assign a color to that path, such that paths sharing an edge receive different colors. The RWA problem thus decomposes into two subproblems: the
routing problem of selecting a path for each request, and the WA problem of coloring the resulting paths. In general graphs where multiple paths exist between node pairs, these subproblems interact, making RWA more complex than WA alone. == Trees ==