# Relationship

> **Class** in `langchain_community`

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

Represents a directed relationship between two nodes in a graph.

## Signature

```python
Relationship()
```

## Extends

- `Serializable`

## Properties

- `source`
- `target`
- `type`
- `properties`

---

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