---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaGraphEdge.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/IPanoramaGraphEdge.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt

# IPanoramaGraphEdge

Interface describing an edge of the panorama graph.

[Constructor](#constructor-summary) | [Methods](#methods-summary)

## Constructor {#constructor-summary}

```javascript
IPanoramaGraphEdge()
```

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [getEndNodes](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaGraphEdge.md#getEndNodes)() | [IPanoramaGraphNode](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaGraphNode.md)[] | Returns an array of two nodes of the graph connected by an edge.||
|#

## Methods details {#method_detail}

### getEndNodes {#getEndNodes}

```javascript
{IPanoramaGraphNode[]} getEndNodes()
```

**Returns** an array of two nodes of the graph connected by an edge.