Function rs_graph::classes::cycle[][src]

pub fn cycle<'a, G>(n: usize) -> G where
    G: Graph<'a> + Buildable

Returns a cycle with length n.

The cycle is directed if G is directed