Package-level declarations
Types
Link copied to clipboard
data class PersistentDirectedGraph<T>(val vertices: PersistentSet<T> = persistentSetOf(), adjacency: PersistentMap<T, PersistentSet<T>> = persistentMapOf()) : Graph<T>
An immutable directed graph using persistent data structures. Updates return new instances that share structure with the original, providing O(log n) time complexity per operation.
Link copied to clipboard
Properties
Link copied to clipboard
Converts a Graph into a VisitableOnceGraph which allows visiting each vertex only once.