# 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/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/graphs/graph_document.py#L24)