LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corerunnablesgraph_mermaid
    Moduleā—Since v0.1

    graph_mermaid

    Mermaid graph drawing utilities.

    Attributes

    Functions

    Classes

    View source on GitHub
    attribute
    MARKDOWN_SPECIAL_CHARS: str
    function
    draw_mermaid
    function
    draw_mermaid_png
    class
    CurveStyle
    class
    MermaidDrawMethod
    class
    NodeStyles
    class
    Edge
    class
    Node

    Draws a Mermaid graph using the provided graph data.

    Draws a Mermaid graph as PNG using provided syntax.

    Enum for different curve styles supported by Mermaid.

    Enum for different draw methods supported by Mermaid.

    Schema for Hexadecimal color codes for different node types.

    Edge in a graph.

    Node in a graph.