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

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

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

                                         Is a Given Graph Connected?
                                         连接是一个给定的图吗?

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

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

Returns TRUE iff the specified graphs are connected.
返回TRUE当且仅当指定的图形连接。


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


is.connected(g, connected = "strong", comp.dist.precomp = NULL)



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

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


参数:connected
definition of connectedness to use; must be one of "strong", "weak", "unilateral", or "recursive".
定义的连通性使用,必须是一个"strong","weak","unilateral"或"recursive"。


参数:comp.dist.precomp
a component.dist object precomputed for the graph to be analyzed (optional).
component.dist对象的预计算的图形进行分析(可选)。


Details

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

is.connected determines whether the elements of g are connected under the definition specified in connected.  (See component.dist for details.)  Since is.connected is really just a wrapper for component.dist, an object created with the latter can be supplied (via comp.dist.precomp) to speed computation.
is.connected决定的要素g下的定义中指定的connected连接。 (见component.dist的详细信息。)由于is.connected是为component.dist真的只是一个包装,后者创建的对象(通过comp.dist.precomp),以加速计算。


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

TRUE iff g is connected, otherwise FALSE
TRUE当且仅当g连接,否则FALSE


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


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



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

West, D.B.  (1996).  Introduction to Graph Theory.  Upper Saddle River, N.J.: Prentice Hall.

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

component.dist, components
component.dist,components


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


#Generate two graphs:[生成两个图表:]
g1<-rgraph(10,tp=0.1)
g2<-rgraph(10)

#Check for connectedness[检查连通性]
is.connected(g1)  #Probably not[也许不是]
is.connected(g2)  #Probably so[大概就是这样]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 08:44 , Processed in 0.020272 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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