GenAI.Graph.MermaidProtocol protocol (GenAI Core v0.2.0)
Mermaid Encode Protocol.
Link to this section Summary
Functions
Convert element to mermaid output.
Convert element to mermaid output.
Convert element to mermaid output.
Format an ID for use in a Mermaid diagram.
Link to this section Types
@type t() :: term()
All the types that implement this protocol.
Link to this section Functions
Link to this function
encode(graph_element)
Convert element to mermaid output.
Link to this function
encode(graph_element, options)
Convert element to mermaid output.
Link to this function
encode(graph_element, options, state)
Convert element to mermaid output.
Link to this function
mermaid_id(id)
Format an ID for use in a Mermaid diagram.