deConz connecting lines colour

What do the colours signify between devices on the visualistion? If I turn off the neighbouring links, I get a bunch of lines that fade from red to blue.

With neighbouring links on, it turns into a right mess of yellow and green (mostly)

Just curious, really