graph-builder
Version:
A graph builder library for modeling abstract graph structures.
13 lines (8 loc) • 567 B
Markdown
[Home](./index) > [graph-builder](./graph-builder.md) > [BaseGraph](./graph-builder.basegraph.md) > [isDirected](./graph-builder.basegraph.isdirected.md)
# BaseGraph.isDirected method
Returns true if the edges in this graph are directed. Directed edges connect a [EndpointPair.source](./graph-builder.endpointpair.source.md) to a [EndpointPair.target](./graph-builder.endpointpair.target.md)<!-- -->, while undirected edges connect a pair of nodes to each other.
**Signature:**
```javascript
isDirected(): boolean;
```
**Returns:** `boolean`