OffsetGraphStreamLinkingRule

class OffsetGraphStreamLinkingRule<T, P : Position<P>>(val offset: Int, val graph: Graph) : LinkingRule<T, P>

A LinkingRule that statically connects nodes as they were configured by GraphStream. An offset is used to determine the id of the environment's nodes when compared to the one of the provided graph.

Constructors

Link copied to clipboard
constructor(offset: Int, graph: Graph)

Properties

Link copied to clipboard
val graph: Graph
Link copied to clipboard
val offset: Int

Functions

Link copied to clipboard
open override fun computeNeighborhood(center: Node<T>, environment: Environment<T, P>): Neighborhood<T>
Link copied to clipboard
open override fun isLocallyConsistent(): Boolean