# create_simple_model

> **Function** in `langchain_neo4j`

📖 [View in docs](https://reference.langchain.com/python/langchain-neo4j/graph_transformers/llm/create_simple_model)

Create a simple graph model with optional constraints on node
and relationship types.

## Signature

```python
create_simple_model(
    node_labels: Optional[List[str]] = None,
    rel_types: Optional[Union[List[str], List[Tuple[str, str, str]]]] = None,
    node_properties: Union[bool, List[str]] = False,
    llm_type: Optional[str] = None,
    relationship_properties: Union[bool, List[str]] = False,
    relationship_type: Optional[str] = None,
) -> Type[_Graph]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `node_labels` | `Optional[List[str]]` | No | Specifies the allowed node types. Defaults to None, allowing all node types. (default: `None`) |
| `rel_types` | `Optional[List[str]]` | No | Specifies the allowed relationship types. Defaults to None, allowing all relationship types. (default: `None`) |
| `node_properties` | `Union[bool, List[str]]` | No | Specifies if node properties should be included. If a list is provided, only properties with keys in the list will be included. If True, all properties are included. Defaults to False. (default: `False`) |
| `relationship_properties` | `Union[bool, List[str]]` | No | Specifies if relationship properties should be included. If a list is provided, only properties with keys in the list will be included. If True, all properties are included. Defaults to False. (default: `False`) |
| `llm_type` | `Optional[str]` | No | The type of the language model. Defaults to None. Only openai supports enum param: openai-chat. (default: `None`) |

## Returns

`Type[_Graph]`

Type[_Graph]: A graph model with the specified constraints.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-neo4j/blob/887064c6bea53318f3507ed07120ea68bfe6a36b/libs/neo4j/langchain_neo4j/graph_transformers/llm.py#L322)