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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|