linked all nodes to neighbors