Cycle Detection in Graph added