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