I'm interested to know whether the following problem is NP-complete or if there is an algorithm to solve it.
Suppose we are given a directed graph $G=(V,E^{\rightarrow})$ and we want to colour the edges with the minimum number of colours required so that in-going edges at a vertex must be a different colours and out going edges at a vertex must be a different colours, but an out going edge and an in going edge at a vertex may share a colour.