Skip to main content

export_dot

Function export_dot 

Source
pub fn export_dot(conn: &Connection, config: &DotConfig) -> Result<String>
Expand description

Export the knowledge graph in DOT (Graphviz) format.

Generates a DOT format string suitable for rendering with Graphviz tools such as dot, neato, fdp, etc.

ยงExample output

digraph knowledge_graph {
    rankdir=LR;
    node [shape=ellipse];
    1 [label="Deep Learning" color=blue];
    1 -> 2 [label="related_to" weight=0.8];
}