Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 635 Bytes

graph-builder.graphbuilder.allowsselfloops.md

File metadata and controls

18 lines (12 loc) · 635 Bytes

Home > graph-builder > GraphBuilder > allowsSelfLoops

GraphBuilder.allowsSelfLoops method

Specifies whether the graph will allow self-loops (edges that connect a node to itself). Attempting to add a self-loop to a graph that does not allow them will throw an error.

Signature:

allowsSelfLoops(allowsSelfLoops: boolean): GraphBuilder<N>;

Returns: GraphBuilder<N>

Parameters

Parameter Type Description
allowsSelfLoops boolean