graph-builder
Version:
A graph builder library for modeling abstract graph structures.
15 lines (9 loc) • 434 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [ElementOrder](./graph-builder.elementorder.md) > [getComparator](./graph-builder.elementorder.getcomparator.md)
# ElementOrder.getComparator method
Returns the [Comparator](./graph-builder.comparator.md) used.
Throws an error if comparator is not defined
**Signature:**
```javascript
getComparator(): Comparator<T>;
```
**Returns:** `Comparator<T>`