In graph theory, the neighborhood [1] of a vertex in a graph is the edge induced subgraph, i.e. the graph composed of all the vertices adjacent to and all the edges connecting them.

Definition


Definition 1 (Neighbor)

Let be a graph. A vertex is a neighbor of a vertex if is adjacent to , i.e. if .

Definition 2 (Open neighborhood)

Let be a graph and a vertex. The open neighborhood of is the edge induced subgraph on the set of neighbors of , excluding itself.

Definition 3 (Closed neighborhood)

Let be a graph and a vertex. The closed neighborhood of is the edge induced subgraph on the set of neighbors of , including itself.

Notation


The open neighborhood of is denoted , or simply when the graph is unambiguous, and the closed neighborhood is denoted . The same neighborhood notation may also be used to refer to the set of adjacent vertices rather than the corresponding induced subgraph.

Directed graphs


In a directed graph, the neighborhood of a vertex splits into two directed notions: the in-neighborhood , the set of neighbors with a directed edge , and the out-neighborhood , the set of neighbors with a directed edge .

References

  1. [1]

    “Neighbourhood (graph theory)”, Wikipedia, Available: https://en.wikipedia.org/wiki/Neighbourhood_(graph_theory), Accessed: 2026-07-31