isomorphism               package:RBGL               R Documentation

_C_o_m_p_u_t_e _i_s_o_m_o_r_p_h_i_s_m _f_r_o_m _v_e_r_t_i_c_e_s _i_n _o_n_e _g_r_a_p_h _t_o _t_h_o_s_e _i_n _a_n_o_t_h_e_r _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     Compute isomorphism from vertices in one graph to those in another
     graph

_U_s_a_g_e:

     isomorphism(g1, g2)

_A_r_g_u_m_e_n_t_s:

      g1: one instance of the 'graph' class 

      g2: one instance of the 'graph' class 

_D_e_t_a_i_l_s:

     As stated in documentation on isomorphism in Boost Graph Library:
     An isomorphism is a 1-to-1 mapping of the vertices in one graph to
     the vertices  of another graph such that adjacency is preserved.
     Another words, given graphs  G1 = (V1,E1) and G2 = (V2,E2) an
     isomorphism is a function f such that for all  pairs of vertices
     a,b in V1, edge (a,b) is in E1 if and only if edge (f(a),f(b)) is
     in E2.

_V_a_l_u_e:

     Output is true if there exists an isomorphism between g1 and g2,
     otherwise it's false.

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

     Boost Graph Library by Siek et al.

_S_e_e _A_l_s_o:

_E_x_a_m_p_l_e_s:

     g1 <- fromGXL(file(system.file("XML/dijkex.gxl",package="RBGL"), open="r"))
     g2 <- fromGXL(file(system.file("XML/conn2.gxl",package="RBGL"), open="r"))
     isomorphism(g1, g2)

