In [[graph theory]], a '''cycle''' in a [[Graph (discrete mathematics)|graph]] is a non-empty [[Path (graph theory)#Walk, trail, path|trail]] in which the only repeated [[Vertex (graph theory)|vertices]] are the first and last vertices. A '''directed cycle''' in a [[directed graph]] is a non-empty [[Path (graph theory)#Directed walk, trail, path|directed trail]] in which the only repeated vertices are the first and last vertices. | In [[graph theory]], a '''cycle''' in a [[Graph (discrete mathematics)|graph]] is a non-empty [[Path (graph theory)#Walk, trail, path|trail]] in which the only repeated [[Vertex (graph theory)|vertices]] are the first and last vertices. A '''directed cycle''' in a [[directed graph]] is a non-empty [[Path (graph theory)#Directed walk, trail, path|directed trail]] in which the only repeated vertices are the first and last vertices. |