Movatterモバイル変換


[0]ホーム

URL:


TOPICS
SearchClose
Search

Clique


DOWNLOAD Mathematica NotebookDownloadWolfram Notebook
Clique

A clique of a graphG is a complete subgraph ofG, and the clique of largest possible size is referred to as amaximum clique (which has size known as the (upper)clique numberomega(G)). However, care is needed since maximum cliques are often called simply "cliques" (e.g., Harary 1994). Amaximal clique is a clique that cannot be extended by including one more adjacent vertex, meaning it is not a subset of a larger clique. Maximum cliques are therefore maximal cliqued (but not necessarily vice versa).

Cliques arise in a number of areas ofgraph theory and combinatorics, including graph coloring and the theory oferror-correcting codes.

A clique of sizek is called ak-clique (though this term is also sometimes used to mean a maximal set of vertices that are at a distance no greater thank from each other). 0-cliques correspond to the empty set (sets of 0 vertices), 1-cliques correspond to vertices, 2-cliques to edges, and 3-cliques to 3-cycles.

Theclique polynomial is of a graphG is defined as

 C_G(x)=sum_(k=0)^(omega(G))c_kx^k,

wherec_k is the number of cliques of sizek, withc_0=1,c_1=|G| equal to thevertex count ofG,c_2=m(G) equal to theedge count ofG, etc.

In theWolfram Language, the commandFindClique[g][[1]] can be used to find amaximum clique, andFindClique[g,Length /@FindClique[g],All] to find allmaximum cliques. Similarly,FindClique[g,Infinity] can be used to find amaximal clique, andFindClique[g,Infinity,All] to find all maximal cliques. To find all cliques, enumerate all vertex subsetss and select those for whichCompleteGraphQ[g,s] is true.

In general,FindClique[g,n] can be used to find amaximal clique containing at leastn vertices,FindClique[g,n,All] to find all such cliques,FindClique[g,{n}] to find a clique containing at exactlyn vertices, andFindClique[g,{n},All] to find all such cliques.

The numbers of cliques, equal to theclique polynomial evaluated atx=1, for various members of graph families are summarized in the table below, where the trivial 0-clique represented by the initial 1 in theclique polynomial is included in each count.

graph familyOEISnumber of cliques
alternating group graphA308599X, 2, 8, 45, 301, 2281, ...
Andrásfai graphA1150674, 11, 21, 34, 50, 69, 91, ...
n×nantelope graphA3086002, 5, 10, 17, 34, 61, 98, ...
antiprism graphA017077X, X, 27, 33, 41, 49, 57, 65, ...
Apollonian networkA20524816, 40, 112, 328, 976, 2920, ...
barbell graphA000079X, X, 16, 32, 64, 128, 256, 512, ...
n×nbishop graphA1831562, 7, 22, 59, 142, 319, ...
n×nblack bishop graphA2959092, 4, 14, 30, 82, 160, 386, ...
book graphS_(n+1) square P_2A0168979, 14, 19, 24, 29, 34, 39, 44, ...
Bruhat graphA1391492, 4, 13, 61, 361, 2521, 20161, ...
centipede graphA0085864, 8, 12, 16, 20, 24, 28, 32, 36, ...
cocktail party graphK_(n×2)A0002443, 9, 27, 81, 243, 729, 2187, ...
complete graphK_nA0000792, 4, 8, 16, 32, 64, 128, 256, ...
complete bipartite graphK_(n,n)A0002904, 9, 16, 25, 36, 49, 64, 81, 100, ...
complete tripartite graphK_(n,n,n)A0005788, 27, 64, 125, 216, 343, 512, ...
2n-crossed prism graphA017281X, 21, 31, 41, 51, 61, 71, ...
crown graphK_2 square K_n^_A002061X, X, 13, 21, 31, 43, 57, 73, 91, ...
cube-connected cycle graphA295926X, X, 69, 161, 401, 961, 2241, 5121, ...
cycle graphC_nA308602X, X, 8, 9, 11, 13, 15, 17, 19, ...
dipyramidal graphA308603X, X, 24, 27, 33, 39, 45, 51, 57, 63, ...
empty graphK^__nA0000272, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ...
Fibonacci cube graphA2919164, 6, 11, 19, 34, 60, 106, 186, ...
n×nfiveleaper graphA308604X, 4, 16, 25, 57, 129, 289, 641, 1409, ...
folded cube graphA2959213, 15, 24, 56, ...
gear graphA016873X, X, 17, 22, 27, 32, 37, 42, 47, 52, ...
grid graphP_n square P_nA0561052, 9, 22, 41, 66, 97, 134, 177, 226, 281, ...
grid graphP_n square P_n square P_nA2959072, 21, 82, 209, 426, 757, 1226, 1857, ...
halved cube graphA2959222, 4, 16, 81, 393, 1777, ...
Hanoi graphA2959118, 25, 76, 229, 688, ...
helm graphA016933X, X, 22, 26, 32, 38, 44, 50, 56, ...
hypercube graphQ_nA1327504, 9, 21, 49, 113, 257, 577, 1281, 2817, ...
Keller graphA2959025, 57, 14833, 2290312801, ...
n×nking graphA2959062, 16, 50, 104, 178, 272, 386, ...
n×nknight graphA2959052, 5, 18, 41, 74, 117, 170, 233, 306, 389, ...
ladder graphP_2 square P_nA0168974, 9, 14, 19, 24, 29, 34, 39, 44, 49, 54, ...
ladder rung graphnP_2A0167774, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34, ...
Menger sponge graphA29220945, 1073, 22977, ...
Möbius ladderM_nA016861X, X, 16, 21, 26, 31, 36, 41, 46, 51, ...
Mycielski graphA1991092, 4, 11, 32, 95, 284, 851, 2552, 7655, ...
odd graphO_nA2959342, 8, 26, 106, 442, 1849, 7723, ...
pan graphA005408X, X, 10, 11, 13, 15, 17, 19, 21, 23, ...
path graphP_nA0058432, 4, 6, 8, 10, 12, 14, 16, 18, 20, ...
path complement graphP^__nA0000452, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
permutation star graphA1391492, 4, 13, 61, 361, 2521, ...
polygon diagonal intersection graphA300524X, X, 8, 18, 41, 80, 169, 250, ...
prism graphK_2 square C_nA016861X, X, 18, 21, 26, 31, 36, 41, 46, 51, ...
n×nqueen graphA2959032, 16, 94, 293, 742, 1642, 3458, 7087, ...
rook graphK_n square K_nA2889582, 9, 34, 105, 286, 721, 1730, ...
rook complement graphK_n square K_n^_A0027202, 7, 34, 209, 1546, 13327, 130922, ...
Sierpiński carpet graphA29593217, 153, 1289, 10521, ...
Sierpiński gasket graphA2959338, 20, 55, 160, 475, ...
Sierpiński tetrahedron graphA2925376, 59, 227, 899, 3587, 14339, ...
star graphS_nA0058432, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, ...
sun graphA295904X, X, 20, 32, 52, 88, 156, 288, 548, ...
sunlet graphC_n circledot K_1A016813X, X, 14, 17, 21, 25, 29, 33, 37, 41, 45, ...
tetrahedral graphA289837X, X, X, X, X, 261, 757, 2003, 5035, ...
torus grid graphC_n square C_nA056107X, X, 34, 49, 76, 109, 148, 193, ...
transposition graphA3086062, 4, 16, 97, 721, 6121, ...
triangular graphA290056X, 2, 8, 27, 76, 192, 456, 1045, ...
triangular grid graphA2426588, 20, 38, 62, 92, 128, 170, 218, ...
triangular snake graphTS_nA0167892, X, 8, X, 14, X, 20, X, 26, X, 32, X, ...
web graphA016993X, X, 24, 29, 36, 43, 50, 57, 64, 71, 78, ...
wheel graphW_nA308607X, X, X, 16, 18, 22, 26, 30, 34, 38, 42, 46, ...
n×nwhite bishop graphA295910X, 4, 9, 30, 61, 160, 301, 71, ...

Closed forms for some of these are summarized in the table below.


See also

Clique Covering,Clique Covering Number,Clique Number,Clique Polynomial,Lower Clique Number,Maximal Clique,Maximum Clique

Explore with Wolfram|Alpha

References

Harary, F.Graph Theory. Reading, MA: Addison-Wesley, 1994.Pemmaraju, S. and Skiena, S.Computational Discrete Mathematics: Combinatorics and Graph Theory in Mathematica. Cambridge, England: Cambridge University Press, pp. 247-248, 2003.Skiena, S. "Maximum Cliques." §5.6.1 inImplementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, pp. 215 and 217-218, 1990.Skiena, S. S. "Clique and Independent Set" and "Clique." §6.2.3 and 8.5.1 inThe Algorithm Design Manual. New York: Springer-Verlag, pp. 144 and 312-314, 1997.

Referenced on Wolfram|Alpha

Clique

Cite this as:

Weisstein, Eric W. "Clique." FromMathWorld--AWolfram Resource.https://mathworld.wolfram.com/Clique.html

Subject classifications

Created, developed and nurtured by Eric Weisstein at Wolfram Research

[8]ページ先頭

©2009-2026 Movatter.jp