inEdges                package:graph                R Documentation

_i_n_E_d_g_e_s

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

     Computes and returns a list of all the edges in to the specified
     set of nodes.

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

     inEdges(node, object)

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

    node: a set of nodes 

  object: a 'graph' object 

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

     All in edges for the set of nodes are computed. For an undirected
     graph this is also all the out edges.

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

     A list with one element for each node, the values are the vector
     of node labels for those nodes with edges to the specified node.

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

     R. Gentleman

_S_e_e _A_l_s_o:

     'removeNode', 'clearNode'

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

       V <- LETTERS[1:4]
       edL3 <- vector("list", length=4)
       for(i in 1:4)
         edL3[[i]] <- list(edges=(i%%4)+1, weights=i)
       names(edL3) <- V
       gR3 <- new("graphNEL", nodes=V, edgeL=edL3, "directed")
       inEdges(c("A", "B"), gR3)

