graph-builder
Version:
A graph builder library for modeling abstract graph structures.
20 lines (13 loc) • 566 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [EndpointPair](./graph-builder.endpointpair.md) > [ordered](./graph-builder.endpointpair.ordered.md)
# EndpointPair.ordered method
Returns an [EndpointPair](./graph-builder.endpointpair.md) representing the endpoints of a directed edge.
**Signature:**
```javascript
static ordered<N>(source: N, target: N): EndpointPair<N>;
```
**Returns:** `EndpointPair<N>`
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `N` | |
| `target` | `N` | |