graph-builder
Version:
A graph builder library for modeling abstract graph structures.
15 lines (9 loc) • 543 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [EndpointPair](./graph-builder.endpointpair.md) > [target](./graph-builder.endpointpair.target.md)
# EndpointPair.target method
If this [EndpointPair](./graph-builder.endpointpair.md) [EndpointPair.isOrdered](./graph-builder.endpointpair.isordered.md)<!-- -->, returns the node which is the target.
Throws an error if this [EndpointPair](./graph-builder.endpointpair.md) is not ordered.
**Signature:**
```javascript
abstract target(): N;
```
**Returns:** `N`