export_dot

Function export_dot 

Source
pub fn export_dot(
    engine: &OptimizedDiscoveryEngine,
    path: impl AsRef<Path>,
    _filter: Option<ExportFilter>,
) -> Result<()>
Expand description

Export graph to DOT format (for Graphviz)

§Arguments

  • engine - The discovery engine containing the graph
  • path - Output file path
  • filter - Optional filter criteria

§DOT Format

DOT is a text-based graph description language used by Graphviz. The exported file can be rendered using:

dot -Tpng graph.dot -o graph.png
neato -Tsvg graph.dot -o graph.svg

§Examples

export_dot(&engine, "output/graph.dot", None)?;