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