Questions tagged [clique]

In the mathematical area of graph theory, a clique in an undirected graph is a subset of its vertices such that every two vertices in the subset are connected by an edge.

Definition

A clique in an undirected graph G = (V, E) is a subset of the vertex set C ⊆ V, such that for every two vertices in C, there exists an edge connecting the two. This is equivalent to saying that the subgraph induced by C is complete (in some cases, the term clique may also refer to the subgraph).

A maximal clique is a clique that cannot be extended by including one more adjacent vertex, that is, a clique which does not exist exclusively within the vertex set of a larger clique.

A maximum clique is a clique of the largest possible size in a given graph. The clique number ω(G) of a graph G is the number of vertices in a maximum clique in G. The intersection number of G is the smallest number of cliques that together cover all edges of G.

The opposite of a clique is an independent set, in the sense that every clique corresponds to an independent set in the complement graph. The clique cover problem concerns finding as few cliques as possible that include every vertex in the graph. A related concept is a biclique, a complete bipartite subgraph. The bipartite dimension of a graph is the minimum number of bicliques needed to cover all the edges of the graph.

Clique Problem

In computer science, the clique problem is the computational problem of finding a maximum clique, or all cliques, in a given graph. It is NP-complete, one of Karp's 21 NP-complete problems (Karp 1972). It is also fixed-parameter intractable, and hard to approximate. Nevertheless, many algorithms for computing cliques have been developed, either running in exponential time (such as the Bron–Kerbosch algorithm) or specialized to graph families such as planar graphs or perfect graphs for which the problem can be solved in polynomial time.

Free software for searching maximum clique

93 questions
0
votes
1 answer

Create adjacence matrix given node connections

I want to create an adjacence matrix given n lines that represent a partial connection between some nodes of a graph. For example, due to the fact that each line represent a clique, the lines A-B; B-C; C-D; A-E-D form the following graph. My first…
0
votes
2 answers

Finding all independent sets of a perfect graph

I read that a maximum independent set on a perfect graph can be found in polynomial time. Is there any polynomial time algorithm that can find the list of all independent sets of a perfect graph?
user2858924
  • 433
  • 5
  • 15
0
votes
1 answer

Counting all cliques of k vertices in a graph sequentially

Does exist a sequential algorithm for counting all k-cliques in an undirected graph? With k-cliques I mean this: the number of sets of vertices that are all connected one another by edges in an undirected graph. Here's where to find a more detailed…
Matt
  • 773
  • 2
  • 15
  • 32
0
votes
1 answer

Print cliques using R igraph library

I want to print cliques for a graph using igraph of R package. The format of data I want to print as A B C (showing this data in Res1, Res2, Res3 format...) Data: Res1 Res2 Weight A B 10 A C 1 C B 10 S B 1 L A …
Aybid
  • 86
  • 1
  • 8
0
votes
0 answers

maximal cliques on wiki

Maximal cliques in the graph model shown on wikipedia has included cliques of size 3 and 4 only. But I think cliques of size 2 (which are connecting the 3,4 size cliques) should also be included in maximal cliques according to definition mentioned.…
hunch
  • 329
  • 1
  • 2
  • 10
0
votes
0 answers

How can I find the number of cliques given a graph G in python?

I need to have two pieces of information, given a graph G: The number of cliques in G. The relative size of those cliques. For example: there are 3 cliques of size 3, 10 cliques of size 4, 7 cliques of size 5 etc. I am using Python and I know…
0
votes
1 answer

An algorithm to prove that for a constant K, K-Clique in P?

I am a newbie in theoretical computer and I was asked to do such an algorithm that works in a polynomial time for K-CLIQUE to prove that it belongs to P. I was thinking about an algorithm that takes a graph of n vertex, and for each vertex , for…
Zok
  • 355
  • 2
  • 15
0
votes
1 answer

Subspace clustering using CLIQUE in ELKI

I am trying to detect dense subspaces from a high dimensional dataset. For this I want to use ELKI library. But there are very few documentations and examples of ELKI library. I tried the following- Database…
0
votes
1 answer

Obtaining a tree decomposition from an elimination ordering and chordal graph

I need a nice tree decomposition of a graph given an elimination ordering and a chordalization of the graph. My idea is to obtain all cliques in the graph (which I can do) and build a binary tree starting from a root and make children (i.e.,…
E.pojken
  • 365
  • 1
  • 2
  • 10
0
votes
1 answer

Independent set check by checking in graph is a clique

I have a homework question for an algorithm class regarding transforming an s-clique into a s-independent set. Below is code and the function at the very bottom independent_set_decision(H,s) is what I need to finish. I am stumped. def k_subsets(lst,…
Andy
  • 275
  • 2
  • 14
0
votes
2 answers

How to find the maximum edge-weighted clique?

The maximum clique problem (MC-problem) is a classical NP problem, and we could use branch-bound to solve this problem effectively. Recently, I try to develop an algorithm to find out the clique that has the maximum edge-weighted clique in a graph,…
MinG
  • 57
  • 9
0
votes
1 answer

Extracting subgraphs (cliques) within graph on Netlogo

I have a netlogo question. I have some graph structures of nodes connected with (undirected) links. I need to figure out which is the smallest subgraph within one of these structures. Basically subgraph means which nodes are all connected between…
Atirag
  • 1,660
  • 7
  • 32
  • 60
0
votes
1 answer

K-Clique in Connected Graphs

A question about the clique problem (specifically k-clique). Is there any algorithm that takes advantage of the properties of connected graphs to find cliques of a given size k, if such cliques exist?
Paul Manta
  • 30,618
  • 31
  • 128
  • 208
0
votes
1 answer

Graph Theory: Clique concepts

I was trying to solve a basic clique problem but i have stucked at some following points: what is is the minimum size of the largest clique in any graph with N nodes and M edges To Find the largest clique in a graph Please tell me difference…
Amit Pal
  • 10,604
  • 26
  • 80
  • 160
-1
votes
0 answers

How to trim a graph while preserving clique coverage of specific vertices?

Note: this is not a duplicate of the question How to remove vertices from a graph that are not coverable by cliques?. That question is asking how we can remove vertices that are not in a clique, and this question is asking how we can remove as many…