clearNode               package:graph               R Documentation

_c_l_e_a_r_N_o_d_e

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

     This function removes all edges to or from the specified node in
     the graph.

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

     clearNode(node, object)

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

    node: a node 

  object: a 'graph' 

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

     All edges to and from 'node' are removed. 'node' can be a vector.

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

     A new instance of the graph with all edges to and from the
     specified node(s) removed.

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

     R. Gentleman

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

     'removeNode', 'removeEdge'

_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")
      g4 <- clearNode("A", gR3)

