Common neighbourhood

ID: common-neighbourhood

The common neighbourhood of a vertex set in a simple graph is the intersection of the open graph neighbourhoods:
Its vertices are adjacent to every member of . This differs from the union-neighborhood convention , which asks for adjacency to at least one member. The notation must distinguish these two operations.
In the path , vertices one and three have common neighbourhood . In a triangle, the endpoints of an edge have the third vertex as their unique common neighbor. Neither endpoint belongs to the intersection, because a simple graph has no loops.
Common-neighbor counts detect triangles and other dense local patterns. In a bipartite graph with parts , the common neighbourhood of a subset of lies in and identifies vertices simultaneously connected to the entire chosen subset.

New to topics? Read the docs here!