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

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

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

                                        Find the leaves of a graph
                                         图叶

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

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

A leaf of an undirected graph is a node with degree equal to one.  A leaf of a directed graph is defined with respect to in-degree or out-degree.  The leaves of a directed graph with respect to in-degree (out-degree) are those nodes with in-degree (out-degree) equal to zero.
一个无向图的叶子是一个程度等于一体的节点。定义一个有向图的叶入度或出度。与尊重度(出度)的有向图的叶子是这些节点与度(出度)等于零。


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


leaves(object, degree.dir)



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

参数:object
A graph object
一个graph对象


参数:degree.dir
One of "in" or "out".  This argument is ignored when object is undirected and required otherwise. When degree.dir="in" (degree.dir="out"), nodes have no in coming (out going) edges will be returned.  
一个"in"或"out"。时object是无方向的要求,否则该参数将被忽略。当degree.dir="in"(degree.dir="out"),节点有没有(走出去)边缘会被返回。


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

A character vector giving the node labels of the leaves.
字符向量给叶子节点的标签。


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


Seth Falcon



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


data(graphExamples)
graphExamples[[1]]
leaves(graphExamples[[1]])

data(apopGraph)
leaves(apopGraph, "in")
leaves(apopGraph, "out")


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 14:51 , Processed in 0.030685 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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