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.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.