graph-builder
Version:
A graph builder library for modeling abstract graph structures.
21 lines (14 loc) • 604 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [EndpointPair](./graph-builder.endpointpair.md) > [of](./graph-builder.endpointpair.of.md)
# EndpointPair.of method
Returns an [EndpointPair](./graph-builder.endpointpair.md) representing the endpoints of an edge in `graph`<!-- -->.
**Signature:**
```javascript
static of<N>(graph: Graph<any>, nodeU: N, nodeV: N): EndpointPair<N>;
```
**Returns:** `EndpointPair<N>`
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| `graph` | `Graph<any>` | |
| `nodeU` | `N` | |
| `nodeV` | `N` | |