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

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

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

                                        Underlying Graph
                                         基本走势

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

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

For a directed graph the underlying graph is the graph that is constructed where all edge orientation is ignored. This function carries out such a transformation on graphNEL instances.
对于一个有向图的基本图形是所有边缘方向被忽略的构造图。此功能进行这样的改造graphNEL实例。


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


ugraph(graph)



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

参数:graph
a graph object.  
graph对象。


Details

详情----------Details----------

If graph is already undirected then it is simply returned.
graph如果已经是无向的,它只是返回。

If graph is a multi-graph (has multiple edges) an error is thrown as it is unclear how to compute the underlying graph in that context.
graph如果是一个多图(有多个边)抛出一个错误,因为它目前还不清楚如何计算在这方面的基本图形。

The method will work for any graph subclass for which an edgeMatrix method exists.
该方法将任何graph子类edgeMatrix方法存在的工作。


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

An instance of graphNEL with the same nodes as the input but which is undirected.
graphNEL的一个实例作为输入相同的节点,但它是undirected。


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


R. Gentleman



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

<h3>See Also</h3>   <code>connComp</code> <code>edgeMatrix</code>

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


V <- letters[1:4]
edL2 <- vector("list", length=4)
names(edL2) <- V
for(i in 1:4)
  edL2[[i]] <- list(edges=c(2,1,2,1)[i], weights=sqrt(i))
gR2 <- new("graphNEL", nodes=V, edgeL=edL2, edgemode="directed")

ugraph(gR2)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 13:57 , Processed in 0.024380 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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