graph-builder
Version:
A graph builder library for modeling abstract graph structures.
11 lines (6 loc) • 454 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [Comparator](./graph-builder.comparator.md)
# Comparator interface
## Methods
| Method | Returns | Description |
| --- | --- | --- |
| [`compare(a, b)`](./graph-builder.comparator.compare.md) | `number` | Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. |