Neural network approach to graph colouring