subgraph               package:igraph               R Documentation

_S_u_b_g_r_a_p_h _o_f _a _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     'subgraph' creates a subgraph of a graph, containing only the
     specified vertices and all the edges among them.

_U_s_a_g_e:

     subgraph(graph, v)

_A_r_g_u_m_e_n_t_s:

   graph: The original graph.

       v: Numeric vector, the vertices of the original graph which will
          form the subgraph.

_D_e_t_a_i_l_s:

     The ids of the vertices will change in the subgraph of course
     since these are always consecutive.

_V_a_l_u_e:

     A new graph object.

_A_u_t_h_o_r(_s):

     Gabor Csardi csardi@rmki.kfki.hu

_E_x_a_m_p_l_e_s:

     g <- graph.ring(10)
     g2 <- subgraph(g, 1:7)

