addNeighbor

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

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