A neighbor of a node is another node that is connected to it by an edge.