]>
git.proxmox.com Git - rustc.git/blob - vendor/petgraph/benches/iso.rs
12 use petgraph
::algo
::is_isomorphic
;
15 fn petersen_iso_bench(bench
: &mut Bencher
) {
16 let a
= digraph().petersen_a();
17 let b
= digraph().petersen_b();
19 bench
.iter(|| is_isomorphic(&a
, &b
));
23 fn petersen_undir_iso_bench(bench
: &mut Bencher
) {
24 let a
= ungraph().petersen_a();
25 let b
= ungraph().petersen_b();
27 bench
.iter(|| is_isomorphic(&a
, &b
));
31 fn full_iso_bench(bench
: &mut Bencher
) {
32 let a
= ungraph().full_a();
33 let b
= ungraph().full_b();
35 bench
.iter(|| is_isomorphic(&a
, &b
));
39 fn praust_dir_no_iso_bench(bench
: &mut Bencher
) {
40 let a
= digraph().praust_a();
41 let b
= digraph().praust_b();
43 bench
.iter(|| is_isomorphic(&a
, &b
));
47 fn praust_undir_no_iso_bench(bench
: &mut Bencher
) {
48 let a
= ungraph().praust_a();
49 let b
= ungraph().praust_b();
51 bench
.iter(|| is_isomorphic(&a
, &b
));