prunemst                package:spdep                R Documentation

_P_r_u_n_e _a _M_i_n_i_m_u_n _S_p_a_n_n_i_n_g _T_r_e_e

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

     This function deletes a first edge and makes two subsets of edges.
     Each subset is a Minimun Spanning Treee.

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

     prunemst(edges, only.nodes = TRUE)

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

   edges: A matrix with two colums with each row is one edge

only.nodes: If 'only.nodes=FALSE', return a edges and nodes of each MST
          resulted. If 'only.nodes=TRUE', return a two sets of nodes.
          Defalt is TRUE

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

     A list of length two. If 'only.nodes=TRUE' each element is a
     vector of nodes. If 'only.nodes=FALSE' each element is a list with
     nodes and edges.

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

     Elias T. Krainski and Renato M. Assuncao

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

     See Also as 'mstree'

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

     e <- matrix(c(2,3, 1,2, 3,4, 4,5), ncol=2, byrow=TRUE)
     e
     prunemst(e)
     prunemst(e, only.nodes=FALSE)

