# LabelsDict

> **Class** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/runnables/graph/LabelsDict)

Dictionary of labels for nodes and edges in a graph.

## Signature

```python
LabelsDict()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    nodes: dict[str, str],
    edges: dict[str, str],
)
```

| Name | Type |
|------|------|
| `nodes` | `dict[str, str]` |
| `edges` | `dict[str, str]` |


## Properties

- `nodes`
- `edges`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/fb6ab993a73180538f6cca876b3c85d46c08845f/libs/core/langchain_core/runnables/graph.py#L38)