Let T be a symmetric directed tree, i.e., an undirected tree with each edge viewed as two opposite arcs. We prove that the minimum number of colors needed to color the set of all directed paths in T, so that two paths of the same color never use the same directed arc of T, is equal to the maximum number of different paths that contain the same arc of T. The proof implies a polynomial time algorithm for actually coloring the paths with the minimum number of colors. When only a subset of the directed paths is to be colored, the problem is known to be NP-complete; we describe certain instances of the problem which can be ef®ciently solved. These results are applied to WDM (wavelength-division multiplexing) routing in all-optical networks. In particular, we solve the all-to-all gossiping problem in optical networks.