SimpleNeighborhood

A basic implementation of the Neighborhood interface.

Functions

Link copied to clipboard
open override fun add(node: Node<T>): <Error class: unknown class>
Link copied to clipboard
open operator override fun contains(node: Node<T>?): <Error class: unknown class>

Verifies if a node is contained inside a neighborhood.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getCenter(): Node<T>

Allows to access the central node.

Link copied to clipboard
open override fun getNeighbors(): <Error class: unknown class><out Node<T>>

Allows to directly access every node in the neighborhood. A change of this List will be reflected in the neighborhood.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): <Error class: unknown class>
Link copied to clipboard
open operator override fun iterator(): <Error class: unknown class>
Link copied to clipboard
open override fun remove(node: Node<T>): Neighborhood<T>
Link copied to clipboard
open override fun size(): <Error class: unknown class>
Link copied to clipboard
open override fun toString(): String