removeSelfLoops             package:RBGL             R Documentation

_r_e_m_o_v_e _s_e_l_f _l_o_o_p_s _i_n _a _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     remove self loops in a graph

_U_s_a_g_e:

     removeSelfLoops(g)

_A_r_g_u_m_e_n_t_s:

       g: one instance of the 'graph' class 

_D_e_t_a_i_l_s:

     If a given graph contains self-loop(s), 'removeSelfLoops' removes
     them. This is for those functions that cannot handle graphs with
     self-loops.

_V_a_l_u_e:

     A new graph without self loops.

_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:

     g1 <- fromGXL(file(system.file("XML/dijkex.gxl",package="RBGL")))
     g2 <- ugraph(g1)
     removeSelfLoops(g2)

