Network

interface Network<T>(source)

A non-segmented network of nodes.

Properties

Link copied to clipboard
abstract val diameter: Double

The diameter (the longest among the shortest paths) in the Network.

Link copied to clipboard
abstract val nodes: Set<Node<T>>

The nodes that belong to this Network.

Functions

Link copied to clipboard
open operator fun contains(node: Node<T>): Boolean

Returns true whether the Network contains the node passed as input.

Link copied to clipboard
open fun containsAtLeastOneOf(nodes: Set<Node<T>>): Boolean

Returns true whether the Network contains at least one of the nodes passed as input.

Link copied to clipboard
abstract operator fun plus(otherNetwork: Network<T>): Network<T>

Returns a new Network obtained by adding the otherNetwork to this one.