export_all

Function export_all 

Source
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 engine
  • patterns - Detected patterns
  • history - Coherence history
  • output_dir - Directory to create and write files

§Examples

export_all(&engine, &patterns, &history, "output/discovery_results")?;