Two vertices π’ and π£ in an undirected graph πΊ are called adjacent (or neighbors) in πΊ if π’ and π£ are endpoints of an edge π of πΊ.
Such an edge π is called incident with the vertices π’ and π£ and π is said to connect π’ and π£.
Neighborhood, N(v):
The set of all neighbors of a vertex π£ of πΊ = (π, πΈ), denoted by π(π£), is called the neighborhood of π£.
If π΄ is a subset of π, we denote by π(π΄) the set of all vertices in πΊ that are adjacent to at least one vertex in π΄. So, N(A)=βͺvβAβN(v)
Degree of a vertex, deg(v):
The degree (or valency) of a vertex in an undirected graph is the number of edges incident with it
except that a loop at a vertex contributes twice to the degree of that vertex.