# NeptuneAnalyticsGraph

> **Class** in `langchain_community`

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

Neptune Analytics wrapper for graph operations.

## Signature

```python
NeptuneAnalyticsGraph(
    self,
    graph_identifier: str,
    client: Any = None,
    credentials_profile_name: Optional[str] = None,
    region_name: Optional[str] = None,
)
```

## Description

**Example:**

.. code-block:: python

graph = NeptuneAnalyticsGraph(
    graph_identifier='<my-graph-id>'
)

*Security note*: Make sure that the database connection uses credentials
that are narrowly-scoped to only include necessary permissions.
Failure to do so may result in data corruption or loss, since the calling
code may attempt commands that would result in deletion, mutation
of data if appropriately prompted or reading sensitive data if such
data is present in the database.
The best way to guard against such negative outcomes is to (as appropriate)
limit the permissions granted to the credentials used with this tool.

See https://python.langchain.com/docs/security for more information.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `client` | `Any` | No | optional boto3 Neptune client (default: `None`) |
| `credentials_profile_name` | `Optional[str]` | No | optional AWS profile name (default: `None`) |
| `region_name` | `Optional[str]` | No | optional AWS region, e.g., us-west-2 (default: `None`) |
| `graph_identifier` | `str` | Yes | the graph identifier for a Neptune Analytics graph |

## Extends

- `BaseNeptuneGraph`

## Constructors

```python
__init__(
    self,
    graph_identifier: str,
    client: Any = None,
    credentials_profile_name: Optional[str] = None,
    region_name: Optional[str] = None,
) -> None
```

| Name | Type |
|------|------|
| `graph_identifier` | `str` |
| `client` | `Any` |
| `credentials_profile_name` | `Optional[str]` |
| `region_name` | `Optional[str]` |


## Properties

- `client`
- `graph_identifier`

## Methods

- [`query()`](https://reference.langchain.com/python/langchain-community/graphs/neptune_graph/NeptuneAnalyticsGraph/query)

## ⚠️ Deprecated

Deprecated since version 0.3.15.

---

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