Companion

object Companion

Builders of Neighborhoods, whose neighbors are always sorted.

Functions

Link copied to clipboard
operator fun <T> invoke(center: Node<T>, neighbors: Iterable<Node<T>>): Neighborhood<T>

The neighborhood of center made of the distinct neighbors, sorted.

operator fun <T> invoke(center: Node<T>, neighbors: Set<Node<T>>): Neighborhood<T>

The neighborhood of center made of neighbors, sorted.