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