pub fn isoclass_create(
size: u32,
number: u32,
directed: bool,
) -> IgraphResult<Graph>Expand description
Creates the canonical representative graph of the given isomorphism class.
The isomorphism class number must be in [0, graph_count(size, directed) - 1].
Supports directed 3-4 and undirected 3-5 vertex graphs.
ยงExamples
use rust_igraph::{isoclass, isoclass_create};
// Create directed 3-vertex graph of class 5
let g = isoclass_create(3, 5, true).unwrap();
assert_eq!(g.vcount(), 3);
assert!(g.is_directed());
assert_eq!(isoclass(&g).unwrap(), 5);
// Create undirected 4-vertex graph of class 0 (empty graph)
let g = isoclass_create(4, 0, false).unwrap();
assert_eq!(g.ecount(), 0);