prunemst(spdep)
prunemst()所属R语言包:spdep
Prune a Minimun Spanning Tree
修剪一个最小生成树
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function deletes a first edge and makes two subsets of edges. Each subset is a Minimun Spanning Treee.
此功能删除第一条边和使两个子边。每个子集是一个最小生成树Treee。
用法----------Usage----------
prunemst(edges, only.nodes = TRUE)
参数----------Arguments----------
参数:edges
A matrix with two colums with each row is one edge
矩阵的每一行有两个colums是一个边缘
参数: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
如果only.nodes=FALSE,返回边和节点的每个MST造成的。如果only.nodes=TRUE,返回两个节点集。 Defalt是TRUE
值----------Value----------
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.
列表长度为2。如果only.nodes=TRUE每个元素的节点是一个向量。如果only.nodes=FALSE的每个元素是一个节点和边。
(作者)----------Author(s)----------
Elias T. Krainski and Renato M. Assuncao
参见----------See Also----------
See Also as mstree
此外,mstree
实例----------Examples----------
e <- matrix(c(2,3, 1,2, 3,4, 4,5), ncol=2, byrow=TRUE)
e
prunemst(e)
prunemst(e, only.nodes=FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|