graph-builder
Version:
A graph builder library for modeling abstract graph structures.
19 lines (12 loc) • 896 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [EndpointPair](./graph-builder.endpointpair.md) > [equals](./graph-builder.endpointpair.equals.md)
# EndpointPair.equals method
Two ordered [EndpointPair](./graph-builder.endpointpair.md)<!-- -->s are equal if their [EndpointPair.source](./graph-builder.endpointpair.source.md) and [EndpointPair.target](./graph-builder.endpointpair.target.md) are equal. Two unordered [EndpointPair](./graph-builder.endpointpair.md)<!-- -->s are equal if they contain the same nodes. An ordered [EndpointPair](./graph-builder.endpointpair.md) is never equal to an unordered [EndpointPair](./graph-builder.endpointpair.md)<!-- -->.
**Signature:**
```javascript
abstract equals(obj?: Object): boolean;
```
**Returns:** `boolean`
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| `obj` | `Object` | |