MutableGraph

interface MutableGraph<N, E> : MutableCollection<N> , Graph<N, E>

Functions

Link copied to clipboard
abstract override fun add(element: N): Boolean
Link copied to clipboard
abstract fun addAll(elements: Collection<N>): Boolean
Link copied to clipboard
abstract fun <K2, V2> associate(transformer: (N) -> MapEntry<K2, V2>): Map<K2, V2>
Link copied to clipboard
abstract override fun clear()
Link copied to clipboard
abstract fun connect(from: N, to: N, with: E)
Link copied to clipboard
abstract operator fun contains(element: N): Boolean
Link copied to clipboard
abstract fun containsAll(elements: Collection<N>): Boolean
Link copied to clipboard
abstract fun edge(from: N, to: 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: N, to: N): Boolean
Link copied to clipboard
abstract fun isConnected(node1: N, node2: N): Boolean
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): MutableIterator<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: N, to: N): List<Set<N>>
Link copied to clipboard
abstract override fun remove(element: N): Boolean
Link copied to clipboard
abstract fun removeAll(elements: Collection<N>): Boolean
Link copied to clipboard
abstract fun retainAll(elements: Collection<N>): Boolean
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 val size: Int