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

Graph.hasEdge() method

Whether one vertex points at another.

Signature:

hasEdge(vertex: T, edge: T): boolean;

Parameters

Parameter

Type

Description

vertex

T

Vertex the edge would start from.

edge

T

Vertex it would point at.

Returns:

boolean

true when that edge is present.

Remarks

Directed, so the order of the arguments matters: this asks about an edge from vertex to edge and says nothing about the other direction.