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

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

[复制链接]
发表于 2012-2-25 22:57:54 | 显示全部楼层 |阅读模式
neighborhood(KEGGgraph)
neighborhood()所属R语言包:KEGGgraph

                                         Return the neighborhood set of given vertices
                                         返回给定的顶点附近集

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

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

The function returns the neighborhood set of given vertices in the form of list. Optionally user can choose to include the given vertices in the list, too.
该函数返回在列表的形式给出的顶点附近集合。可选,用户可以选择,也列入名单中给定的顶点。


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


neighborhood(graph, index, return.self = FALSE)



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

参数:graph
An object of graphNEL
一个graphNEL的对象


参数:index
Names of nodes, whose neighborhood set should be returned  
节点,其附近设置的名称应退还


参数:return.self
logical, should the vertex itself also be returned?
逻辑顶点本身,应该也可以退还?


Details

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

Let v be a vertex in a (di)graph, the out-neighborhood or successor set (N+(v), x belongs to V(G) and v->x) and the in-neighborhood or predecessor set (N-(v), x belongs to V(G) and x->v) are jointly returned.
设v是一个顶点(二)图,一套出居委会或继承人的(N +(V),x属于V(G)和V-X)和居委会或前任集(N (V),X为V(G)和X-V)共同返回。

The returned list is indexed by the given node indices, NULL is returned in case of non-existing node.
返回的列表是由给定的节点索引的索引,NULL节点不存在的情况下返回。

The nodes are unique, that is, duplicated nodes are removed in results.
节点是唯一的,在结果中删除,复制节点。


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

A list indexed by the given node indices, each entry containing the neighborhood set of that node (or furthermore including that node).
由给定的节点指标,每个条目包含的节点(或者还包括节点)设置邻里索引列表。


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


Jitao David Zhang <jitao_david.zhang@roche.com>



参考文献----------References----------



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


  V <- c("Hamburg","Stuttgart","Berlin","Paris","Bremen")
  E <- list("Hamburg"=c("Berlin","Bremen"),
            "Stuttgart"=c("Berlin","Paris"),
            "Berlin"=c("Stuttgart","Bremen"),
            "Paris"=c("Stuttgart"),
            "Bremen"=c("Hamburg","Berlin"))
  g <- new("graphNEL", nodes=V, edgeL=E, edgemode="directed")
  if(require(Rgraphviz) &amp; interactive()) {
    plot(g, "neato")
  }

  ## simple uses[#简单的用途]
  neighborhood(g, "Hamburg")
  neighborhood(g, c("Hamburg", "Berlin","Paris"))

  ## in case of non-existing nodes[#在非现有节点]
  neighborhood(g, c("Stuttgart","Ulm"))

  ## also applicable to non-directed graphs[#也适用于非定向图]
  neighborhood(ugraph(g), c("Stuttgart","Berlin"))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-5 06:03 , Processed in 0.036605 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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