Graph

interface Graph<out N, out E> : Collection<N>

Inheritors

Functions

Link copied to clipboard
abstract fun <K2, V2> associate(transformer: (N) -> MapEntry<K2, V2>): Map<K2, V2>
Link copied to clipboard
abstract operator override fun contains(element: N): Boolean
Link copied to clipboard
abstract fun containsAll(elements: Collection<N>): Boolean
Link copied to clipboard
abstract fun edge(from: @UnsafeVariance N, to: @UnsafeVariance N): E?
Link copied to clipboard
abstract fun filter(predicate: (N) -> Boolean): List<N>
Link copied to clipboard
abstract fun first(): N
Link copied to clipboard
abstract fun firstOrNull(): N?
Link copied to clipboard
abstract fun forEach(lambda: (item: N) -> Unit)
Link copied to clipboard
abstract fun forEachWithIndex(lambda: (item: N, index: Int) -> Unit)
Link copied to clipboard
abstract fun hasPath(from: @UnsafeVariance N, to: @UnsafeVariance N): Boolean
Link copied to clipboard
abstract fun isConnected(node1: @UnsafeVariance N, node2: @UnsafeVariance N): Boolean
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator fun iterator(): Iterator<N>
Link copied to clipboard
abstract fun loops(): List<Set<N>>
Link copied to clipboard
abstract fun <R> map(transform: (item: N) -> R): List<R>
Link copied to clipboard
abstract fun <R> mapToArray(transform: (item: N) -> R): Array<R>
Link copied to clipboard
abstract fun <R> mapToArrayWithIndex(transform: (item: N, index: Int) -> R): Array<R>
Link copied to clipboard
abstract fun <R> mapWithIndex(transform: (item: N, index: Int) -> R): List<R>
Link copied to clipboard
abstract fun paths(from: @UnsafeVariance N, to: @UnsafeVariance N): List<Set<N>>
Link copied to clipboard
inline fun <E> Collection<E>.toIList(): List<E>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <E> Collection<E>.toISet(): Set<E>
Link copied to clipboard
abstract fun uniqueLoops(): List<Set<N>>

Properties

Link copied to clipboard
abstract override val size: Int