graph-builder
Version:
A graph builder library for modeling abstract graph structures.
21 lines (13 loc) • 578 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [EndpointPair](./graph-builder.endpointpair.md) > [adjacentNode](./graph-builder.endpointpair.adjacentnode.md)
# EndpointPair.adjacentNode method
Returns the node that is adjacent to `node` along the origin edge.
Throws an error if this [EndpointPair](./graph-builder.endpointpair.md) does not contain `node`<!-- -->.
**Signature:**
```javascript
adjacentNode(node: N): N;
```
**Returns:** `N`
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| `node` | `N` | |