docs.rs failed to build nauty-pet-0.7.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
nauty-pet-0.12.1
nauty-pet
Canonical graph labelling.
Leverages nauty and Traces to find canonical labellings for petgraph graphs.
Version 2.6 or 2.7 of the nauty and Traces library has to be installed separately before installing this crate.
Example
use UnGraph;
use *;
// Two different vertex labellings for the tree graph with two edges
let g1 = from_edges;
let g2 = from_edges;
// There are two equivalent labellings
let automorphism_info = g1.clone.try_into_autom.unwrap;
assert_eq!;
// The canonical forms are identical
let c1 = g1.clone.into_canon;
let c2 = g2.clone.into_canon;
assert!;
// Alternatively, we can use a dedicated `struct` for canonically
// labelled graphs
let c1 = from;
let c2 = from;
assert_eq!;
Features
-
libc
: Allows using sparse graphs for canonisation. Before enabling this feature, ensure that the nauty and Traces library is linked to the same C library as this crate. -
serde-1
: Enables serialisation of CanonGraph objects using serde. -
stable
: Ensures deterministic behaviour when node or edge weights are distinguishable, but compare equal.
To enable features feature1
, feature2
add the following to
your Cargo.toml:
[]
= { = "0.7", = ["feature1", "feature2"] }
License: Apache-2.0