maxClique                package:RBGL                R Documentation

_F_i_n_d _a_l_l _t_h_e _c_l_i_q_u_e_s _i_n _a _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     Find all the cliques in a graph

_U_s_a_g_e:

     maxClique(g)

_A_r_g_u_m_e_n_t_s:

       g: an instance of the 'graph' class 

_D_e_t_a_i_l_s:

     Notice the maximum clique problem is NP-complete, which means it 
     cannot be solved by any known polynomial algorithm.

     We implemented the algorithm from: Finding all cliques of an
     undirected graph,  by C. Bron and J. Kerbosch,  Communication of
     ACM, Sept 1973, Vol 16, No. 9.

_V_a_l_u_e:

maxClique: list of all cliques in 'g'

_A_u_t_h_o_r(_s):

     Li Long <li.long@isb-sib.ch>

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

_E_x_a_m_p_l_e_s:

     coex <- fromGXL(file(system.file("XML/conn.gxl",package="RBGL"), open="r"))
     maxClique(coex)
     coex <- fromGXL(file(system.file("XML/hcs.gxl",package="RBGL"), open="r"))
     maxClique(coex)

