On the periodicity of the graph of nonnegative matrices