graph-builder
Version:
A graph builder library for modeling abstract graph structures.
21 lines (13 loc) • 567 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [BaseGraph](./graph-builder.basegraph.md) > [incidentEdges](./graph-builder.basegraph.incidentedges.md)
# BaseGraph.incidentEdges method
Returns the edges in this graph whose endpoints include `node`<!-- -->.
Throws an error if `node` is not an element of this graph.
**Signature:**
```javascript
incidentEdges(node: N): Set<EndpointPair<N>>;
```
**Returns:** `Set<EndpointPair<N>>`
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| `node` | `N` | |