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

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

Returns a cycle with length n.

The cycle is directed if G is directed