PersistentDirectedGraph

constructor(vertices: PersistentSet<T> = persistentSetOf(), adjacency: PersistentMap<T, PersistentSet<T>> = persistentMapOf())

Parameters

T

the type of vertices in the graph

vertices

the set of vertices in the graph

adjacency

a map from each vertex to its set of neighbors (outgoing edges)