genpet

Crates.iogenpet
lib.rsgenpet
version0.1.1
sourcesrc
created_at2023-12-26 04:24:44.632366
updated_at2023-12-26 04:34:11.118553
descriptionGenerate petgraph graphs with geng.
homepage
repositoryhttps://github.com/ericbrandwein/genpet
max_upload_size
id1080625
size6,253
Eric Brandwein (ericbrandwein)

documentation

README

genpet

Generate petgraph graphs with geng.

Examples

use genpet::generate_graphs;
use genpet::GengOption;

let graphs = generate_graphs(3, &[]);

for graph in graphs {
    println!("{}", graph.node_count());
}

let graphs = generate_graphs(4, &[GengOption::Connected, GengOption::Chordal]);
for graph in graphs {
    println!("{}", graph.node_count());
}

Testing locally

  • Install Rust and Cargo
  • Install nauty
  • Run cargo test
Commit count: 5

cargo fmt