UNPKG

graph-builder

Version:

A graph builder library for modeling abstract graph structures.

13 lines (8 loc) 567 B
[Home](./index) &gt; [graph-builder](./graph-builder.md) &gt; [BaseGraph](./graph-builder.basegraph.md) &gt; [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`