Ade-elementary-circuits
Johnson's algorithm for finding all elementary circuits in a directed graph SIAM J. Comput., Vol. 4, No. 1, March 1975 https://www.cs.tufts.edu/comp/150GA/homeworks/hw1/Johnson%2075.PDF
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Usage Example
This example demonstrates how to use the elementary_circuits function to find all elementary circuits in a directed graph.
use elementary_circuits;
use build_graph;
Documentation
The complete documentation is available on docs.rs.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Benchmark
# Run benchmarks within a crate
cargo bench --bench elementary_circuits_bench --features="test-utils"
# Save baseline
cargo bench --bench elementary_circuits_bench --features="test-utils" -- --save-baseline before_optimization
# Compare with baseline
cargo bench --bench elementary_circuits_bench --features="test-utils" -- --baseline before_optimization