pub fn cycle_graph(n: u32, directed: bool, mutual: bool) -> IgraphResult<Graph>Expand description
Cycle graph C_n: convenience wrapper for ring_graph(n, directed, mutual, true).
ยงExamples
use rust_igraph::cycle_graph;
let c4 = cycle_graph(4, false, false).unwrap();
assert_eq!(c4.ecount(), 4);