Expand description
§dress-graph
Safe Rust bindings for the DRESS C library — A Continuous Framework for Structural Graph Refinement. See the DRESS repository for more information.
use dress_graph::{DRESS, Variant};
let sources = vec![0, 1, 2, 0];
let targets = vec![1, 2, 3, 3];
let mut g = DRESS::new(4, sources, targets,
None, None, Variant::Undirected, false).unwrap();
let (iters, delta) = g.fit(100, 1e-6);
let result = g.result();
println!("iterations: {}", iters);
for (i, d) in result.edge_dress.iter().enumerate() {
println!(" edge {}: dress = {:.6}", i, d);
}Structs§
- DRESS
- A persistent DRESS graph that supports repeated
fitandgetcalls. - Delta
Dress Result - Result of the Δ^k-DRESS fitting procedure.
- Dress
Result - Result of the DRESS fitting procedure.
- Histogram
Entry - Exact sparse histogram entry produced by Δ^k-DRESS.
- Nabla
Dress Result - Result of the ∇^k-DRESS fitting procedure.
Enums§
- Dress
Error - Errors that can occur when building or fitting a DRESS graph.
- Variant
- Graph variant — determines how neighbourhoods are constructed.