# GraphDocument

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graphs/graph_document/GraphDocument)

Represents a graph document consisting of nodes and relationships.

## Signature

```python
GraphDocument()
```

## Extends

- `Serializable`

## Properties

- `nodes`
- `relationships`
- `source`

---

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