pub fn cycle<G>(n: usize) -> Gwhere G: Graph + Buildable,
Returns a cycle with length n.
n
The cycle is directed if G is directed