addEdge

open override fun addEdge(from: T, to: T): PersistentDirectedGraph<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