nameToVertexIndex        package:dynamicGraph        R Documentation

_T_h_e _i_n_d_i_c_e_s _o_f _v_e_r_t_i_c_e_s

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

     For each name, find in a list of vertices the index of the vertex
     with that name.

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

     nameToVertexIndex(vertexnames, vertices)

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

vertexnames: Vector of text strings of the 'vertexnames' of the
          vertices for which the indices should be found.  

vertices: A list of 'vertices', of each of class containing the class
          'dg.Node'. 

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

     Integer vector with the indices of the vertices.

_A_u_t_h_o_r(_s):

     Jens Henrik Badsberg

_E_x_a_m_p_l_e_s:

     Names <- c("Sex", "Age", "Eye", "FEV", "Hair", "Shosize")
     Types <- rep("Discrete", 6)
     vertices <- returnVertexList(Names, types = Types)
     nameToVertexIndex(c("Sex", "Eye"), vertices)

