TOPICS
Search

Neighborhood Diversity


The neighborhood diversity of a finite nonempty simple graph is the number of equivalence classes obtained by identifying twin vertices. Distinct vertices u and v are in the same class exactly when N(u)\{v}=N(v)\{u}, where N(u) denotes the open graph neighborhood of u (Lampis 2012).

Each class induces a complete graph or an empty graph. Between two distinct classes either all possible edges are present or none are. Thus the graph can be reconstructed from a graph on the classes by replacing each class vertex with a clique or an independent set of the appropriate size. This substitution shows that the modular-width is at most the neighborhood diversity (Gajarský et al. 2013). A twin-free graph has neighborhood diversity equal to its number of vertices.

If a graph has a vertex cover of size k, its neighborhood diversity is at most k+2^k. Vertices outside the cover form an independent set and have at most 2^k distinct neighborhoods in the cover. Lampis (2012) showed that the twin partition can be computed in polynomial time and used neighborhood diversity to obtain algorithms for deciding properties expressed in monadic second-order logic with vertex-set quantification.


See also

Modular-Width, Shrub-Depth, Twin Vertices, Twin-Free Graph, Twin-Width, Vertex Cover

Explore with Wolfram|Alpha

References

Gajarský, J.; Lampis, M.; and Ordyniak, S. "Parameterized Algorithms for Modular-Width." In Parameterized and Exact Computation (Ed. G. Gutin and S. Szeider). Cham, Switzerland: Springer, pp. 163-176, 2013. https://doi.org/10.1007/978-3-319-03898-8_15.Lampis, M. "Algorithmic Meta-Theorems for Restrictions of Treewidth." Algorithmica 64, 19-37, 2012. https://doi.org/10.1007/s00453-011-9554-x.

Cite this as:

Weisstein, Eric W. "Neighborhood Diversity." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/NeighborhoodDiversity.html

Subject classifications