alchemist-interfaces / it.unibo.alchemist.core.interfaces / DependencyGraph / addNeighbor

addNeighbor

abstract fun addNeighbor(n1: Node<T>!, n2: Node<T>!): Unit

Given two nodes, the graph assumes they are now neighbors and calculates the neighborhood dependencies between them.

Parameters

n1 - Node<T>!: The first node

n2 - Node<T>!: The second node