addNeighbor

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

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

Parameters

n1

The first node

n2

The second node