How to color node wires in node editor?
If you are trying to achieve an effect similar to the one you get with the Blender internal renderer, you can use the Wireframe node to separate edges from the rest:



The white (1) regions are at the specified distance from the edges, and the black (0) regions are not. You can pass these values to the mix shader to use separate shaders for these two regions: