prove that the graph is connected and has odd length cycle if and only if there exist natural number $r$ that all entries of $A^r$ is positive.
$A$ is adjacency matrix of our graph.
I know if all entries are nonzero then we have connected graph because there is walk of the length of the power and also it is true for converse.
the part that I don't understand is why there should be odd cycle?please help me to figure it out .thanks a lot.