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) > [source](./graph-builder.endpointpair.source.md)
# EndpointPair.source method
If this [EndpointPair](./graph-builder.endpointpair.md) [EndpointPair.isOrdered](./graph-builder.endpointpair.isordered.md)<!-- -->, returns the node which is the source.
Throws an error if this [EndpointPair](./graph-builder.endpointpair.md) is not ordered.
**Signature:**
```javascript
abstract source(): N;
```
**Returns:** `N`