Find a cycle in a graph

Signed-off-by: Diyan Yordanov <diyordan@cisco.com>