TrieNode

constructor(parent: TrieNode? = null, q: Int, r: Int, childrenIndices: MutableList<Int?> = MutableList(10) { null })(source)

Parameters

parent

The parent node.

q

The (q) component of the coordinate in the hexagonal grid.

r

The (r) component of the coordinate in the hexagonal grid.

childrenIndices

The indices of the children nodes.