Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find all maximal complete bipartite subgraph from given bipartite graph

Given is a bipartite graph, and we want to list all maximal complete bipartite sub-graph.

For instance,

vertex set L = {A, B, C, D}

vertex set R = {a, b, c, d, e}

edges: A-a, A-b, B-a, B-b, C-c, C-d, D-c, D-d, D-e

The maximal complete bipartite are:

{A,B}-{a, b}

{C,D}-{c, d}

{D} - {c, d, e}

I have found a brute force algorithm, O(2^n). I don't know if some approximation algorithm or randomized algorithm.

like image 565
ColinBinWang Avatar asked Mar 29 '13 08:03

ColinBinWang


People also ask

Are Subgraphs of bipartite graphs bipartite?

Theorem 2.6 (Subgraph of a Bipartite Graph) Every subgraph H of a bipartite graph G is, itself, bipartite.

What is testing of a complete bipartite subgraph in a bipartite graph problem called?

What is testing of a complete bipartite subgraph in a bipartite graph problem called? Explanation: NP stands for nondeterministic polynomial time. In a bipartite graph, the testing of a complete bipartite subgraph in a bipartite graph is an NP-Complete Problem.

Is every bipartite graph is complete bipartite?

Every planar graph whose faces all have even length is bipartite. Special cases of this are grid graphs and squaregraphs, in which every inner face consists of 4 edges and every inner vertex has four or more neighbors. The complete bipartite graph on m and n vertices, denoted by Kn,m is the bipartite graph.

How do you find the complete bipartite graph?

A graph G = (V, E) is called a complete bipartite graph if its vertices V can be partitioned into two subsets V1 and V2 such that each vertex of V1 is connected to each vertex of V2. The number of edges in a complete bipartite graph is m.n as each of the m vertices is connected to each of the n vertices.


1 Answers

You can transform the problem to finding maximal cliques by adding edges between every pair of vertices in each part of the bipartite graph.

The Bron-Kerbosch algorithm can be used to list all maximal cliques in a graph (not necessarily bipartite). It is pretty easy to implement and has a slightly better worst-case time bound of O(3^(n/3)). There is also a fix-parameter tractable time bound in term of the degeneracy of the graph.

like image 64
Jack Cheng Avatar answered Sep 25 '22 16:09

Jack Cheng