Skip to content

logo.svg

Introduction

networkx-mermaid is a Python library that provides a simple way to convert NetworkX graphs into Mermaid diagrams. This allows you to easily visualize your graphs in a variety of formats, including Markdown and HTML.

Key Features

  • Simple Conversion: Convert your NetworkX graphs to Mermaid diagrams with just a few lines of code.
  • Customizable: Customize the appearance of your diagrams, including orientation, node shapes, and colors.
  • Flexible Output: Generate Mermaid diagrams as plain text, Markdown-formatted strings, or full HTML documents.

Whether you're a data scientist, a software engineer, or a researcher, networkx-mermaid can help you create beautiful and informative visualizations of your network data.