# Python graph visualization libraries

Python graph visualization libraries draw networks of nodes and edges as images, documents, or interactive web pages. A layout engine places the nodes so that edges cross as little as possible before a renderer draws the result. These libraries let developers and AI agents show dependency graphs, knowledge graphs, and system architectures.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [NetworkX](#networkx) | 279.1M | 17.4K | Sep 2026 | BSD-3-Clause |
| [graphviz](#graphviz) | 38.3M | 1.8K | Jun 2025 | MIT |
| [pydot](#pydot) | 20.4M | 1.0K | Jun 2025 | MIT |
| [rustworkx](#rustworkx) | 7.5M | 1.8K | Jul 2026 | Apache-2.0 |
| [Bokeh](#bokeh) | 6.5M | 20.5K | Nov 2026 | BSD-3-Clause |
| [igraph](#igraph) | 4.3M | 1.5K | Oct 2025 | GPL-2.0 |
| [pyvis](#pyvis) | 2.0M | 1.2K | Feb 2023 | BSD-3-Clause |
| [Diagrams](#diagrams) | 801.6K | 42.8K | Nov 2025 | MIT |

Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[NetworkX](#networkx) has the most monthly downloads in this comparison, at 279.1M, a count that covers all its graph analysis.

## Capabilities

| Library | Standalone HTML | Needs Graphviz to render |
| --- | --- | --- |
| [NetworkX](#networkx) | No | No |
| [graphviz](#graphviz) | No | Yes |
| [pydot](#pydot) | No | Yes |
| [rustworkx](#rustworkx) | No | No |
| [Bokeh](#bokeh) | Yes | No |
| [igraph](#igraph) | Via plugin | No |
| [pyvis](#pyvis) | Yes | No |
| [Diagrams](#diagrams) | No | Yes |

## Libraries

### NetworkX

[GitHub](https://github.com/networkx/networkx) · [PyPI](https://pypi.org/project/networkx) · [Docs](https://networkx.org/documentation/stable/)

Creates and manipulates graphs and networks.

- Downloads / mo: 279.1M
- Stars: 17.4K
- Last release: 3.7
- License: BSD-3-Clause
- Capabilities: [From the NetworkX docs](https://networkx.org/documentation/stable/)

```sh
pip install networkx matplotlib
```

**py-why/dowhy** (8.4K stars)

[py-why/dowhy](https://github.com/py-why/dowhy) 

```python
def _draw_graph_with_custom_layout(
    graph: nx.Graph,
    colors: Dict[Any, str],
    edge_widths: Dict[Tuple[Any, Any], float],
    figure_size: Optional[List[int]] = None,
):
    # This layout tries to mimic the graphviz layout in a simpler form. The depth grows horizontally here instead of
    # vertically.
    if isinstance(graph, nx.DiGraph):
        graph = nx.DiGraph(graph)
    else:
        graph = nx.Graph(graph)

    layers = _custom_assign_layers(graph)
    nx.set_node_attributes(graph, layers, "layer")
    node_positions = nx.multipartite_layout(graph, subset_key="layer")

    if figure_size is None:
        # Set the figure size based on the number of nodes
        figure = plt.figure(
            figsize=(
                max(np.max([v for v in layers.values()]) * 2, 5),
                max(_custom_count_nodes_vertically(graph) * 1.25, 5),
            )
        )
    else:
        figure = plt.figure(figsize=figure_size)

    nx.draw_networkx_nodes(
        graph,
        node_positions,
        node_size=2000,
        node_color=[colors[node] for node in graph.nodes()],
        alpha=0.8,
    )

    vertical_neighbor_indicator = _custom_create_vertical_neighbor_indicator(graph, node_positions)

    # Nodes that are vertically connected, but not neighbors should be connected via a curved edge.
    edges_with_curved_line = [
        (u, v)
        for u, v in graph.edges()
        if graph.nodes[u]["layer"] == graph.nodes[v]["layer"] and not vertical_neighbor_indicator.loc[str(u), str(v)]
    ]
    nx.draw_networkx_edges(
        graph,
        node_positions,
        edgelist=edges_with_curved_line,
        width=[edge_widths[(s, t)] for (s, t) in edges_with_curved_line],
        edge_color=[colors[(s, t)] for (s, t) in edges_with_curved_line],
        arrowsize=20,
        connectionstyle="arc3,rad=0.5",
        alpha=0.8,
        min_source_margin=25,
        min_target_margin=21,
    )

    # All other nodes should be connected with a straight line.
    edges_with_straigth_line = [
        (u, v)
        for u, v in graph.edges()
        if (graph.nodes[u]["layer"] == graph.nodes[v]["layer"] and vertical_neighbor_indicator.loc[str(u), str(v)])
        or graph.nodes[u]["layer"] != graph.nodes[v]["layer"]
    ]
    nx.draw_networkx_edges(
        graph,
        node_positions,
        edgelist=edges_with_straigth_line,
        width=[edge_widths[(s, t)] for (s, t) in edges_with_straigth_line],
        edge_color=[colors[(s, t)] for (s, t) in edges_with_straigth_line],
        arrowsize=20,
        alpha=0.8,
        min_source_margin=25,
        min_target_margin=21,
    )

    # Draw labels node labels
    for node, (x, y) in node_positions.items():
        plt.text(x, y, node, ha="center", va="center", color="black", fontweight="bold")

    return figure
```

[dowhy/utils/networkx_plotting.py](https://github.com/py-why/dowhy/blob/45de9a90623bae166e32790a6bb5a77827ef91cd/dowhy/utils/networkx_plotting.py#L101-L181) · [More projects using NetworkX →](https://dashboard.exa.ai/playground/search?q=networkx%20GitHub%20projects)

**Quickstart**

```python
import networkx as nx
import matplotlib.pyplot as plt
graph = nx.path_graph(3)
nx.draw_networkx(graph)
plt.show()

```

From [drawing.html](https://networkx.org/documentation/stable/reference/drawing.html)

### graphviz

[GitHub](https://github.com/xflr6/graphviz) · [PyPI](https://pypi.org/project/graphviz) · [Docs](https://graphviz.readthedocs.io)

Creates DOT graph descriptions and renders them through Graphviz.

- Downloads / mo: 38.3M
- Stars: 1.8K
- Last release: 0.21
- License: MIT
- Capabilities: [From the graphviz docs](https://graphviz.readthedocs.io)

**Strengths**

- **Renders diagrams in multiple formats.** Generate PDF, PNG, or SVG through the installed Graphviz renderer.
- **Styles nodes and edges.** Set graph defaults or customize individual nodes and connections.

**Watch out for**

- **Needs a separate Graphviz installation.** Install Graphviz and make its dot executable available on PATH.
- **Labels interpret special text.** Use graphviz.escape when arbitrary text must appear literally.

```sh
pip install graphviz
```

**openai/openai-agents-python** (30.7K stars)

[openai/openai-agents-python](https://github.com/openai/openai-agents-python) 

```python
def draw_graph(agent: Agent, filename: str | None = None) -> graphviz.Source:
    """
    Draws the graph for the given agent and optionally saves it as a PNG file.

    Args:
        agent (Agent): The agent for which the graph is to be drawn.
        filename (str): The name of the file to save the graph as a PNG.

    Returns:
        graphviz.Source: The graphviz Source object representing the graph.
    """
    dot_code = get_main_graph(agent)
    graph = graphviz.Source(dot_code)

    if filename:
        graph.render(filename, format="png", cleanup=True)

    return graph
```

[src/agents/extensions/visualization.py](https://github.com/openai/openai-agents-python/blob/64fbde5d02b42ae5f9db668eb0184cdb3fc9d775/src/agents/extensions/visualization.py#L406-L423) · [More projects using graphviz →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20graphviz%20for%20graph%20diagrams%2C%20network%20visualization%2C%20interactive%20HTML%20graphs%2C%20DOT%20graph%20conversion%20and%20notebook%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from graphviz import Digraph
graph = Digraph()
graph.edge('a', 'b')
graph.render('graph', format='svg', cleanup=True)

```

From [fsm.py](https://graphviz.readthedocs.io/en/stable/manual.html)

### pydot

[GitHub](https://github.com/pydot/pydot) · [PyPI](https://pypi.org/project/pydot) · [Docs](https://pypi.org/project/pydot/)

Creates, reads, edits, and visualizes DOT graphs from Python.

- Downloads / mo: 20.4M
- Stars: 1.0K
- Last release: 4.0.1
- License: MIT
- Capabilities: [From the pydot docs](https://pypi.org/project/pydot/)

**Strengths**

- **Reads and edits DOT graphs.** Parse an existing DOT string before changing graph objects.
- **Converts NetworkX graphs.** Use NetworkX conversion methods to move between the graph representations.

**Watch out for**

- **Needs Graphviz for image rendering.** Install Graphviz separately to generate rendered graph images.
- **Debug logging includes graph contents.** DEBUG logs can include processed graph contents and DOT strings.

```sh
pip install pydot
```

**Quickstart**

```python
import pydot
graph = pydot.Dot(graph_type='digraph')
graph.add_edge(pydot.Edge('a', 'b'))
graph.write_svg('graph.svg')

```

From [README.md](https://github.com/pydot/pydot) · [Find projects using pydot →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pydot%20for%20graph%20diagrams%2C%20network%20visualization%2C%20interactive%20HTML%20graphs%2C%20DOT%20graph%20conversion%20and%20notebook%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### rustworkx

[GitHub](https://github.com/Qiskit/rustworkx) · [PyPI](https://pypi.org/project/rustworkx) · [Docs](https://pypi.org/project/rustworkx/)

Provides a high-performance graph library for Python.

- Downloads / mo: 7.5M
- Stars: 1.8K
- Last release: 0.18.1
- License: Apache-2.0
- Capabilities: [From the rustworkx docs](https://pypi.org/project/rustworkx/)

```sh
pip install rustworkx matplotlib
```

**Qiskit/qiskit** (8.0K stars)

[Qiskit/qiskit](https://github.com/Qiskit/qiskit) 

```python
def draw(self, method="neato"):
    """Draws the coupling map.

    This function calls the :func:`~rustworkx.visualization.graphviz_draw` function from the
    ``rustworkx`` package to draw the :class:`CouplingMap` object.

    .. warning::
        This function will call the system Graphviz tool on a file involving user-controllable
        strings (such as qubit objects).  It is recommended to only call this function on
        trusted input.

    Args:
        method (str): The layout method to use. See the documentation for
            :func:`~rustworkx.visualization.graphviz_draw` for the list of supported methods

    Returns:
        PIL.Image: Drawn coupling map.

    """

    return graphviz_draw(self.graph, method=method)
```

[qiskit/transpiler/coupling.py](https://github.com/Qiskit/qiskit/blob/5a340d1001929ccafe791816b27888a56437699b/qiskit/transpiler/coupling.py#L500-L520) · [More projects using rustworkx →](https://dashboard.exa.ai/playground/search?q=rustworkx%20GitHub%20projects)

**Quickstart**

```python
import rustworkx as rx
from rustworkx.visualization import mpl_draw
import matplotlib.pyplot as plt
graph = rx.PyDiGraph()
graph.extend_from_edge_list([(0, 1)])
mpl_draw(graph)
plt.show()

```

From [rustworkx.visualization.mpl_draw.html](https://www.rustworkx.org/apiref/rustworkx.visualization.mpl_draw.html)

### Bokeh

[GitHub](https://github.com/bokeh/bokeh) · [PyPI](https://pypi.org/project/bokeh) · [Docs](https://pypi.org/project/bokeh/)

Draws interactive plots and applications in the browser from Python.

- Downloads / mo: 6.5M
- Stars: 20.5K
- Last release: 3.10.2
- License: BSD-3-Clause
- Capabilities: [From the Bokeh docs](https://pypi.org/project/bokeh/)

```sh
pip install bokeh networkx
```

**holoviz/holoviews** (2.9K stars)

[holoviz/holoviews](https://github.com/holoviz/holoviews) 

```python
def _init_glyphs(self, plot, element, ranges, source):
    # Get data and initialize data source
    style = self.style[self.cyclic_index]
    data, mapping, style = self.get_data(element, ranges, style)
    self.handles["previous_id"] = element._plot_id

    # Initialize GraphRenderer
    edge_mapping = {k: v for k, v in mapping[self.edge_glyph].items() if "color" not in k}
    graph_args, properties = self._get_graph_properties(
        plot, element, data, mapping, ranges, style
    )
    renderer = plot.graph(*graph_args, **properties)
    if self.filled or self.bezier:
        self._init_filled_edges(renderer, properties, edge_mapping)
    self._set_interaction_policies(renderer)

    # Initialize other renderers
    if data and mapping:
        CompositeElementPlot._init_glyphs(
            self, plot, element, ranges, source, data, mapping, style
        )

    # Reorder renderers
    if self._draw_order:
        self._reorder_renderers(plot, renderer, mapping)

    self.handles["glyph_renderer"] = renderer
    self.handles["scatter_1_glyph_renderer"] = renderer.node_renderer
    self.handles[self.edge_glyph + "_glyph_renderer"] = renderer.edge_renderer
    self.handles["scatter_1_glyph"] = renderer.node_renderer.glyph
    self.handles[self.edge_glyph + "_glyph"] = renderer.edge_renderer.glyph
    if "hover" in self.handles:
        if self.handles["hover"].renderers == "auto":
            self.handles["hover"].renderers = []
        self.handles["hover"].renderers.append(renderer)
    if self.colorbar:
        for k, v in list(self.handles.items()):
            if not k.endswith("color_mapper"):
                continue
            self._draw_colorbar(plot, v, k.replace("color_mapper", ""))
```

[holoviews/plotting/bokeh/graphs.py](https://github.com/holoviz/holoviews/blob/dd1fc09630b8584c1785f00ecb2a2e5eab446b7c/holoviews/plotting/bokeh/graphs.py#L288-L327) · [More projects using Bokeh →](https://dashboard.exa.ai/playground/search?q=bokeh%20GitHub%20projects)

**Quickstart**

```python
import networkx as nx
from bokeh.plotting import figure, from_networkx
from bokeh.io import output_file, save
plot = figure()
plot.renderers.append(from_networkx(nx.path_graph(3), nx.spring_layout, seed=1))
output_file('graph.html')
save(plot)

```

From [graph.html](https://docs.bokeh.org/en/latest/docs/user_guide/topics/graph.html)

### igraph

[GitHub](https://github.com/igraph/python-igraph) · [PyPI](https://pypi.org/project/igraph) · [Docs](https://python.igraph.org)

Provides high-performance graph data structures and algorithms.

- Downloads / mo: 4.3M
- Stars: 1.5K
- Last release: 1.0.0
- License: GPL-2.0
- Capabilities: [From the igraph docs](https://python.igraph.org)

```sh
pip install igraph matplotlib
```

**scverse/scanpy** (2.6K stars)

[scverse/scanpy](https://github.com/scverse/scanpy) 

```python
def get_igraph_from_adjacency(adjacency: CSBase, *, directed: bool) -> Graph:
    """Get igraph graph from adjacency matrix."""
    import igraph as ig
    import scipy.sparse as sps

    import scanpy as sc

    if sc.settings.preset is sc.Preset.ScanpyV2Preview:
        # TODO: replace all call sites with this line
        return ig.Graph.Weighted_Adjacency(
            sps.coo_matrix(adjacency) if isinstance(adjacency, SpBase) else adjacency,
            mode=ig.ADJ_DIRECTED if directed else ig.ADJ_UNDIRECTED,
        )

    sources, targets = adjacency.nonzero()
    weights = dematrix(adjacency[sources, targets]).ravel() if len(sources) else []
    g = ig.Graph(directed=directed)
    g.add_vertices(adjacency.shape[0])  # this adds adjacency.shape[0] vertices
    g.add_edges(list(zip(sources, targets, strict=True)))
    with suppress(KeyError):
        g.es["weight"] = weights
    if g.vcount() != adjacency.shape[0]:
        logg.warning(
            f"The constructed graph has only {g.vcount()} nodes. "
            "Your adjacency matrix contained redundant nodes."
        )
    return g
```

[src/scanpy/_utils/__init__.py](https://github.com/scverse/scanpy/blob/5c7d839cfe8d3d39c94a896bc876f775e6ae0eac/src/scanpy/_utils/__init__.py#L295-L321) · [More projects using igraph →](https://dashboard.exa.ai/playground/search?q=igraph%20GitHub%20projects)

**Quickstart**

```python
import igraph as ig
import matplotlib.pyplot as plt
graph = ig.Graph([(0, 1)], directed=True)
fig, ax = plt.subplots()
ig.plot(graph, target=ax)
plt.show()

```

From [visualisation.html](https://python.igraph.org/en/stable/visualisation.html)

### pyvis

[GitHub](https://github.com/WestHealth/pyvis) · [PyPI](https://pypi.org/project/pyvis) · [Docs](https://pypi.org/project/pyvis/)

Creates interactive network visualizations as HTML.

- Downloads / mo: 2.0M
- Stars: 1.2K
- Last release: 0.3.2
- License: BSD-3-Clause
- Capabilities: [From the pyvis docs](https://pypi.org/project/pyvis/)

**Strengths**

- **Exports interactive HTML graphs.** Share the generated visualization as an HTML file.
- **Imports NetworkX node attributes.** Convert an existing graph while retaining supported visualization properties.

**Watch out for**

- **Collapses repeated undirected edges.** Repeated connections between the same undirected nodes produce one edge.
- **Node IDs must be strings or integers.** Pass a string or integer as each node ID.

```sh
pip install pyvis
```

**HKUDS/LightRAG** (40.7K stars)

[HKUDS/LightRAG](https://github.com/HKUDS/LightRAG) 

```python
def generate_html(graph_data: dict, output_file: str) -> str:
    """Generate an interactive HTML visualization from graph data."""
    nodes = graph_data.get("nodes", [])
    edges = graph_data.get("edges", [])

    if not nodes:
        print("No nodes found in the graph. Index some documents first.")
        sys.exit(1)

    print(f"Building visualization: {len(nodes)} nodes, {len(edges)} edges")

    net = Network(height="100vh", notebook=False, cdn_resources="in_line")

    # Add nodes with colors based on entity type
    import hashlib

    for node in nodes:
        node_id = node.get("id", "")
        props = node.get("properties", {})
        entity_type = props.get("entity_type", "unknown")
        description = props.get("description", "")

        # Deterministic color from entity type
        color_hash = int(hashlib.md5(entity_type.encode()).hexdigest()[:6], 16)
        color = f"#{color_hash:06x}"

        net.add_node(
            node_id,
            label=node_id,
            title=f"[{entity_type}] {description[:200]}"
            if description
            else entity_type,
            color=color,
        )

    # Add edges
    for edge in edges:
        source = edge.get("source", "")
        target = edge.get("target", "")
        props = edge.get("properties", {})
        rel_type = edge.get("type", "")
        description = props.get("description", "")

        net.add_edge(
            source,
            target,
            title=f"[{rel_type}] {description[:200]}" if description else rel_type,
            label=rel_type,
        )

    net.save_graph(output_file)
    print(f"Graph saved to {output_file}")
    return output_file
```

[examples/graph_visual_with_opensearch.py](https://github.com/HKUDS/LightRAG/blob/db4d4b23dd563238886bbdda4fa72df068897878/examples/graph_visual_with_opensearch.py#L58-L110) · [More projects using pyvis →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pyvis%20for%20graph%20diagrams%2C%20network%20visualization%2C%20interactive%20HTML%20graphs%2C%20DOT%20graph%20conversion%20and%20notebook%20exploration&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from pyvis.network import Network
net = Network(notebook=False, cdn_resources='in_line')
net.add_node(0)
net.add_node(1)
net.add_edge(0, 1)
net.write_html('graph.html', notebook=False, open_browser=False)

```

From [example.ipynb](https://pyvis.readthedocs.io/en/latest/documentation.html)

### Diagrams

[GitHub](https://github.com/mingrammer/diagrams) · [PyPI](https://pypi.org/project/diagrams) · [Docs](https://pypi.org/project/diagrams/)

Draws diagrams as code.

- Downloads / mo: 801.6K
- Stars: 42.8K
- Last release: 0.25.1
- License: MIT
- Capabilities: [From the Diagrams docs](https://pypi.org/project/diagrams/)

```sh
pip install diagrams
```

**apache/airflow** (47.5K stars)

[apache/airflow](https://github.com/apache/airflow) 

```python
def generate_basic_airflow_diagram():
    image_file = (MY_DIR / MY_FILENAME).with_suffix(".png")

    console.print(f"[bright_blue]Generating architecture image {image_file}")
    with Diagram(
        name="",
        show=False,
        direction="LR",
        filename=MY_FILENAME,
        outformat="png",
        graph_attr=graph_attr,
        edge_attr=edge_attr,
    ):
        user = User("Airflow User")

        dag_bundle = Custom("Dag bundle", MULTIPLE_FILES_IMAGE.as_posix())
        user >> Edge(color="brown", style="solid", reverse=False, label="author\n\n") >> dag_bundle

        with Cluster("Parsing, Scheduling & Executing"):
            dag_processor = Python("Dag processor")
            scheduler = Python("Scheduler")

        metadata_db = Custom("Metadata DB", DATABASE_IMAGE.as_posix())
        scheduler >> Edge(color="red", style="dotted", reverse=True) >> metadata_db
        dag_processor >> Edge(color="red", style="dotted", reverse=True) >> metadata_db

        plugins_and_packages = Custom(
            "Plugin folder\n& installed packages", PACKAGES_IMAGE.as_posix(), color="transparent"
        )

        user >> Edge(color="blue", style="solid", reverse=False, label="install\n\n") >> plugins_and_packages

        with Cluster("UI"):
            webserver = Python("API Server")

        webserver >> Edge(color="black", style="solid", reverse=True, label="operate\n\n") >> user

        metadata_db >> Edge(color="red", style="dotted", reverse=True) >> webserver

        dag_bundle >> Edge(color="brown", style="solid", label="read\n\n") >> dag_processor

        plugins_and_packages >> Edge(color="blue", style="solid", label="install\n\n") >> scheduler
        plugins_and_packages >> Edge(color="blue", style="solid", label="install\n\n") >> dag_processor
        plugins_and_packages >> Edge(color="blue", style="solid", label="install\n\n") >> webserver

    console.print(f"[green]Generating architecture image {image_file}")
```

[airflow-core/docs/img/diagram_basic_airflow_architecture.py](https://github.com/apache/airflow/blob/8de681ba13fcce40ebd50c3bb7d49b23acc90cc5/airflow-core/docs/img/diagram_basic_airflow_architecture.py#L56-L101) · [More projects using Diagrams →](https://dashboard.exa.ai/playground/search?q=diagrams%20GitHub%20projects)

**Quickstart**

```python
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram('Web Service', show=False):
    ELB('lb') >> EC2('web') >> RDS('userdb')

```

From [installation.md](https://diagrams.mingrammer.com/docs/getting-started/installation)

## FAQ

### Which Python graph visualization library should I use?

[graphviz](#graphviz) suits static diagrams laid out by the Graphviz engines. [pyvis](#pyvis) suits interactive network views in an HTML page. [Diagrams](#diagrams) suits cloud architecture diagrams written as code.

### What is pyvis?

[pyvis](#pyvis) creates interactive network visualizations as HTML pages, with the JavaScript resources inline or loaded from a CDN.

### How do I use Graphviz with Python?

The [graphviz](#graphviz) package builds DOT source from Python and renders it through the Graphviz layout engines installed on the system. [pydot](#pydot) also parses existing DOT files.

### What is Diagrams in Python?

[Diagrams](#diagrams) draws architecture diagrams as code from nodes, edges, and optional icon sets for cloud services.

### How do I draw a NetworkX graph?

[NetworkX](#networkx) includes drawing helpers that use Matplotlib or Graphviz. Its own guide warns that drawing may move to an add-on package.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best Python graph visualization libraries pyvis graphviz pydot ipycytoscape examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
