$ open source · GPL-3.0 — need a commercial license? imqueue.com →

Graph.delEdge() method

Removes edges from one vertex to others.

Signature:

delEdge(fromVertex: T, ...toVertex: T[]): Graph<T>;

Parameters

Parameter

Type

Description

fromVertex

T

Vertex to remove edges from.

toVertex

T[]

Vertices to stop pointing at.

Returns:

Graph<T>

This graph, for chaining.

Remarks

Every occurrence of each target is removed, so a duplicated edge goes entirely. A vertex with no edges, or one that is not in the graph, is left alone.