FindKClub[g,k]
finds a largest k-club in the graph g.
FindKClub
FindKClub[g,k]
finds a largest k-club in the graph g.
Background & Context
- FindKClub finds one or more largest k-clubs in a graph, returning them as a list of vertices. Here, a k-club is a maximal set of vertices for which the diameter (i.e. the length of the longest possible path between two vertices) of the subgraph induced by the vertices is at most k. k-clubs are used in project selection, pattern matching, finance, and network analysis.
- In contrast, FindKClique can be used to find k-cliques of different subgraph diameter, from 1 to the largest possible size (in general n for a graph on n vertices).
- 1-clubs are cliques. While all k-clans are k-clubs, the converse is not always true. However, a k-club is always contained in a k-clique. Related functions include FindClique, FindKClan, FindKClique, and FindKPlex.
Examples
open all close allBasic Examples (1)
Scope (3)
FindKClub works with undirected graphs:
FindKClub[[image], 2]FindKClub[[image], 2]A largest 2-club that includes a given vertex:
FindKClub[{[image], 6}, 2]Applications (1)
Properties & Relations (6)
g = [image];FindKClub[g, 1]CompleteGraphQ[g, First[%]]All k-clubs of a complete graph g are exactly the vertex list of g:
g = CompleteGraph[10]Table[FindKClub[g, k], {k, 1, 4}]A (k-1)-club is contained in a k-club:
g = [image];FindKClub[g, 1]FindKClub[{g, 6}, 2]A k-club is contained in a k-clique:
g = [image];FindKClub[g, 2]FindKClique[g, 2]The converse is not always true:
FindKClique[{g, 6}, 2]GraphDiameter[Subgraph[g, %]]g = [image];FindKClan[g, 2, Infinity, All]FindKClub[g, 2]The converse is not always true:
FindKClub[{g, 6}, 2]FindKClan[{g, 6}, 2, 6, All]Find a largest 2-club that includes a given vertex:
g = [image];FindKClub[{g, 6}, 2]Compare with 2-clique, 2-clan, and 2-plex:
FindKClique[{g, 6}, 2]FindKClan[{g, 6}, 2]FindKPlex[{g, 6}, 2]Related Guides
Text
Wolfram Research (2012), FindKClub, Wolfram Language function, https://reference.wolfram.com/language/ref/FindKClub.html (updated 2014).
CMS
Wolfram Language. 2012. "FindKClub." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/FindKClub.html.
APA
Wolfram Language. (2012). FindKClub. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindKClub.html
BibTeX
@misc{reference.wolfram_2026_findkclub, author="Wolfram Research", title="{FindKClub}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/FindKClub.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_findkclub, organization={Wolfram Research}, title={FindKClub}, year={2014}, url={https://reference.wolfram.com/language/ref/FindKClub.html}, note=[Accessed: 13-June-2026]}