How to tell if a directed graph has a cycle?

117 Views Asked by At

If I have the directed graph here:

enter image description here

I am confused whether or not this is a cycle or not. Because in the underlying graph, this is a 3-cycle for sure, but in the directed graph, there is no cycle if we take into consideration the arrows.

In terms of directed trees, does a cycle count as the underlying version or with respect to the arrows? In other words, is this example a directed tree?

Thanks