Cube3dGraph

data class Cube3dGraph<T : Any>(val blocksByPositions: Map<Vec3I, T>)

Constructors

Link copied to clipboard
fun <T : Any> Cube3dGraph(blocksByPositions: Map<Vec3I, T>)

Functions

Link copied to clipboard
fun bfs(start: Vec3I, visited: Set<Vec3I> = emptySet()): Sequence<Pair<Vec3I, T>>
Link copied to clipboard
fun dfs(start: Vec3I, visited: Set<Vec3I> = emptySet()): Sequence<Pair<Vec3I, T>>
Link copied to clipboard
fun neighbourIds(node: Vec3I): Set<Vec3I>

Properties

Link copied to clipboard
val blocksByPositions: Map<Vec3I, T>
Link copied to clipboard
val positions: Set<Vec3I>