找回密码
 注册
查看: 442|回复: 0

R语言 graph包 removeNode()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 21:12:18 | 显示全部楼层 |阅读模式
removeNode(graph)
removeNode()所属R语言包:graph

                                         removeNode
                                         的removeNode

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

A function to remove a node from a graph. All edges to and from the node are also removed.
函数从图中删除节点。所有从节点的边缘也被删除。


用法----------Usage----------


removeNode(node, object)



参数----------Arguments----------

参数:node
The label of the node to be removed.  
节点的标签将被删除。


参数:object
The graph to remove the node from.  
从图中删除节点。


Details

详情----------Details----------

The specified node is removed from the graph as are all edges to and from that node. A new instance of the same class as object with the specified node(s) is returned.
从图中删除指定的节点,并从该节点的所有边。 object(S)与指定的节点返回的同一类的一个新实例。

Note, node can be a vector of labels, in which case all nodes are removed.
请注意,节点可以是一个标签,在这种情况下,删除所有节点的向量。

This is similar to subGraph.
这是类似subGraph。


值----------Value----------

A new instance of a graph of the same class as object but with all specified nodes removed.
object但删除所有指定节点的同一类图形的一个新实例。


作者(S)----------Author(s)----------


R. Gentleman



参见----------See Also----------

removeEdge, addEdge,
removeEdge,addEdge


举例----------Examples----------


  V <- LETTERS[1:4]
  edL2 <- vector("list", length=4)
  names(edL2) <- V
  for(i in 1:4)
    edL2[[i]] <- list(edges=c(2,1,2,1)[i], weights=sqrt(i))
  gR2 <- new("graphNEL", nodes=V, edgeL=edL2, edgemode="directed")
  gX <- removeNode("C", gR2)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-25 13:54 , Processed in 0.025259 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表