pub fn export_all(
engine: &OptimizedDiscoveryEngine,
patterns: &[SignificantPattern],
history: &[(DateTime<Utc>, f64, CoherenceSnapshot)],
output_dir: impl AsRef<Path>,
) -> Result<()>Expand description
Export all data to a directory
Creates a directory and exports:
- graph.graphml - Full graph in GraphML format
- graph.dot - Full graph in DOT format
- patterns.csv - All patterns
- patterns_evidence.csv - Patterns with detailed evidence
- coherence.csv - Coherence history over time
§Arguments
engine- The discovery enginepatterns- Detected patternshistory- Coherence historyoutput_dir- Directory to create and write files
§Examples
ⓘ
export_all(&engine, &patterns, &history, "output/discovery_results")?;