In
graph theory
In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, the modular decomposition is a decomposition of a
graph
Graph may refer to:
Mathematics
*Graph (discrete mathematics), a structure made of vertices and edges
**Graph theory, the study of such graphs and their properties
*Graph (topology), a topological space resembling a graph in the sense of discre ...
into subsets of
vertices called modules. A ''module'' is a
generalization
A generalization is a form of abstraction whereby common properties of specific instances are formulated as general concepts or claims. Generalizations posit the existence of a domain or set of elements, as well as one or more common character ...
of a
connected component of a graph. Unlike connected components, however, one module can be a
proper subset
In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
of another. Modules therefore lead to a
recursive (hierarchical) decomposition of the graph, instead of just a
partition.
There are variants of modular decomposition for
undirected graphs and
directed graph
In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs.
Definition
In formal terms, a directed graph is an ordered pai ...
s. For each undirected graph, this decomposition is unique.
This notion can be generalized to other structures (for example directed graphs) and is useful to design efficient algorithms for the recognition of some graph classes, for finding transitive orientations of
comparability graph
In graph theory, a comparability graph is an undirected graph that connects pairs of elements that are comparable to each other in a partial order. Comparability graphs have also been called transitively orientable graphs, partially orderable graph ...
s, for
optimization problems on graphs, and for
graph drawing.
Modules
As the notion of modules has been rediscovered in many areas, ''modules'' have also been called ''autonomous sets'', ''homogeneous sets'', ''stable sets'', ''clumps'', ''committees'', ''externally related sets'', ''intervals'', ''nonsimplifiable subnetworks'', and ''partitive sets'' . Perhaps the earliest reference to them, and the first description of modular quotients and the graph decomposition they give rise to appeared in (
Gallai 1967).
A ''module'' of a graph is a generalization of a
connected component. A connected component has the property that it is a set
of vertices such that every member of
is a
non-neighbor of every vertex not in
. (It is a union of connected components if and only if it has this property.) More generally,
is a module if, for each vertex
, either every member of
is a non-neighbor of
or every member of
is a neighbor of
.
Equivalently,
is a module if all members of
have the same set of neighbors among vertices not in
.
Contrary to the connected components, the modules of a graph are the same as the modules of its
complement
A complement is something that completes something else.
Complement may refer specifically to:
The arts
* Complement (music), an interval that, when added to another, spans an octave
** Aggregate complementation, the separation of pitch-clas ...
, and modules can be "nested": one module can be a proper subset of another. Note that the set
of vertices of a graph is a module, as are its one-element subsets and the empty set; these are called the trivial modules. A graph may or may not have other modules. A graph is called prime if all of its modules are trivial.
Despite these differences, modules preserve a desirable property of connected components, which is that many properties of the subgraph