# render_graphviz

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graph_vectorstores/visualize/render_graphviz)

Render a collection of GraphVectorStore documents to GraphViz format.

## Signature

```python
render_graphviz(
    documents: Iterable[Document],
    engine: Optional[str] = None,
    node_color: Optional[str] = None,
    node_colors: Optional[Dict[str, Optional[str]]] = None,
    skip_tags: Iterable[Tuple[str, str]] = (),
) -> graphviz.Digraph
```

## Description

**Note:**

To render the generated DOT source code, you also need to install Graphviz_
(`download page <https://www.graphviz.org/download/>`_,
`archived versions <https://www2.graphviz.org/Archive/stable/>`_,
`installation procedure for Windows <https://forum.graphviz.org/t/new-simplified-installation-procedure-on-windows/224>`_).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `documents` | `Iterable[Document]` | Yes | The documents to render. |
| `engine` | `Optional[str]` | No | GraphViz layout engine to use. `None` uses the default. (default: `None`) |
| `node_color` | `Optional[str]` | No | Default node color. (default: `None`) |
| `node_colors` | `Optional[Dict[str, Optional[str]]]` | No | Dictionary specifying colors of specific nodes. Useful for emphasizing nodes that were selected by MMR, or differ from other results. (default: `None`) |
| `skip_tags` | `Iterable[Tuple[str, str]]` | No | Set of tags to skip when rendering the graph. Specified as tuples containing the kind and tag. (default: `()`) |

## Returns

`graphviz.Digraph`

The "graphviz.Digraph" representing the nodes. May be printed to source,

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/graph_vectorstores/visualize.py#L41)