Squaring of a digraph