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

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

[复制链接]
发表于 2012-9-30 10:49:29 | 显示全部楼层 |阅读模式
components(sna)
components()所属R语言包:sna

                                         Find the Number of (Maximal) Components Within a Given Graph
                                         在一个给定的图中找到的数量(最大)组件

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

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

Returns the number of components within dat, using the connectedness rule given in connected.
内返回的组件数dat,使用的连通给出的规则在connected。


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


components(dat, connected="strong", comp.dist.precomp=NULL)



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

参数:dat
one or more input graphs.
一个或多个输入图表。


参数:connected
the the component definition to be used by component.dist during component extraction.
组件定义成分提取过程中要使用的component.dist。


参数:comp.dist.precomp
a component size distribution object from component.dist (optional).
一个组件的粒度分布对象从component.dist(可选)。


Details

详细信息----------Details----------

The connected parameter corresponds to the rule parameter of component.dist.  By default, components returns the number of strong components, but other component types can be returned if so desired.  (See component.dist for details.)  For symmetric matrices, this is obviously a moot point.
connected参数对应的rule参数component.dist的。默认情况下,components返回强大的组件的数量,但如果需要的话,可以返回其他组件类型。 (见component.dist的详细信息。)对于对称矩阵,这显然是一个有争议的问题。


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

A vector containing the number of components for each graph in dat
一种向量,包含各曲线图中的组件的数量在dat


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


Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>



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

<h3>See Also</h3>

实例----------Examples----------


g&lt;-rgraph(20,tprob=0.05)   #Generate a sparse random graph[随机生成一个稀疏图]

#Find weak components[查找薄弱的组件]
components(g,connected="weak")

#Find strong components[强大的组件]
components(g,connected="strong")


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-4 20:45 , Processed in 0.034802 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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