addEdge

open override fun addEdge(from: T, to: T): VisitableOnceGraph<T>

Adds an edge from one vertex to another.

Return

a new graph instance with the edge added

Parameters

from

the source vertex

to

the destination vertex


open override fun addEdge(pair: Pair<T, T>): VisitableOnceGraph<T>

See also