Skip to main content

Crate dress_graph

Crate dress_graph 

Source
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 fit and get calls.
DeltaDressResult
Result of the Δ^k-DRESS fitting procedure.
DressResult
Result of the DRESS fitting procedure.
HistogramEntry
Exact sparse histogram entry produced by Δ^k-DRESS.
NablaDressResult
Result of the ∇^k-DRESS fitting procedure.

Enums§

DressError
Errors that can occur when building or fitting a DRESS graph.
Variant
Graph variant — determines how neighbourhoods are constructed.

Functions§

delta_fit
One-shot Δ^k-DRESS: build graph, run delta fit, return results, free graph.
fit
One-shot DRESS fit: build graph, fit, return results, free graph.
nabla_fit
One-shot ∇^k-DRESS: build graph, run nabla fit, return results, free graph.