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.
n1 - Node<T>!: The first node
n1
n2 - Node<T>!: The second node
n2