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

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

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

                                        Class "graphAM"
                                         类“graphAM”

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

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

A graph class where node and edge information is represented as an adjacency matrix.  The adjacency matrix is square and element adjMat[i, j] is one if there is an edge from node i to node j and zero otherwise.
一个图的邻接矩阵表示节点和边缘信息的类。邻接矩阵是方形和元素adjMat[i, j]是一个从节点i到节点j,否则为零,如果有一个边缘。


Details

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

The non-zero matrix values can be used to initialize an edge attribute.  If this is desired, use the values argument in the call to new and provide a list with a single named element. The name determines the attributes and the value provides the default value for that attribute.
非零矩阵的值可以用来初始化一个边缘属性。如果此需要,可以使用调用values在new参数,并提供一个单一命名的元素列表。名称确定的属性和价值提供该属性的默认值。


类的对象----------Objects from the Class----------

Objects can be created by calls of the form new("graphAM", adjMat, edgemode, values).
创建对象可以通过检测的形式new("graphAM", adjMat, edgemode, values)。


插槽----------Slots----------




adjMat: An adjacency "matrix" describing the graph structure.  The colnames of the matrix will be used as
adjMat:的邻接"matrix"的图形结构描述。 colnames矩阵将被用来作为




edgeData: Storage for edge attributes.
edgeData:边缘属性的存储。




nodeData: Storage for node attributes.
nodeData:存储节点的属性。


延伸----------Extends----------

Class "graph", directly.
类"graph",直接。


方法----------Methods----------




addEdge signature(from = "character", to = "character", graph = "graphAM", weights = "missing"): ...
addEdgesignature(from = "character", to = "character", graph = "graphAM", weights = "missing")...




addNode signature(object = "graphAM", nodes = "character"): ...
addnode的signature(object = "graphAM", nodes = "character")...




clearNode signature(node = "character", object = "graphAM"): ...
clearNodesignature(node = "character", object = "graphAM")...




coerce signature(from = "graphAM", to = "graphNEL"): ...
要挟signature(from = "graphAM", to = "graphNEL")...




coerce signature(from = "graphAM", to = "graphBAM"): ...
要挟signature(from = "graphAM", to = "graphBAM")...




coerce signature(from = "graphAM", to = "matrix"): In converting to a matrix, if an edge attribute named "weight" is defined, the non-zero elements of the matrix will contain the corresponding attribute value.  For more flexible
强迫signature(from = "graphAM", to = "matrix"):在转换到matrix,如果一个边缘的属性名为"weight"的定义,矩阵的非零元素将包含相应的属性值。更灵活的




coerce signature(from = "matrix", to = "graphAM"): This coerce method exists for symmetry.  In most cases, creating a new graphAM instance using new gives one more
要挟signature(from = "matrix", to = "graphAM"):此要挟方法存在的对称性。在大多数情况下,创建一个新的graphAM例如使用new给人一种




edges signature(object = "graphAM", which = "missing"): ...
边signature(object = "graphAM", which = "missing"):...




edges signature(object = "graphAM", which = "character"): ...
边signature(object = "graphAM", which = "character"):...




initialize signature(.Object = "graphAM"): ...
初始化signature(.Object = "graphAM")...




inEdges signature(node = "character", object = "graphNEL"): Return the incoming edges for the specified
inEdgessignature(node = "character", object = "graphNEL"):返回指定传入的边缘




isAdjacent signature(object = "graphAM", from = "character", to = "character"): ...
isAdjacentsignature(object = "graphAM", from = "character", to = "character")...




nodes<- signature(object = "graphAM", value = "character"): ...
节点< - signature(object = "graphAM", value = "character"):...




nodes signature(object = "graphAM"): ...
节点signature(object = "graphAM")...




numEdges signature(graph = "graphAM"): ...
numEdgessignature(graph = "graphAM")...




numNodes signature(object = "graphAM"): ...
numNodessignature(object = "graphAM")...




removeEdge signature(from = "character", to = "character", graph = "graphAM"): ...
removeEdgesignature(from = "character", to = "character", graph = "graphAM")...




removeNode signature(node = "character", object = "graphAM"): ...
的removeNodesignature(node = "character", object = "graphAM")...


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


Seth Falcon



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

graph-class, graphNEL-class
graph-class,graphNEL-class


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


mat <- rbind(c(0, 0, 1, 1),
             c(0, 0, 1, 1),
             c(1, 1, 0, 1),
             c(1, 1, 1, 0))
rownames(mat) <- colnames(mat) <- letters[1:4]
g1 <- new("graphAM", adjMat=mat)
stopifnot(identical(mat, as(g1, "matrix")), validObject(g1))

## now with weights:[#现在与重量:]
mat[1,3] <- mat[3,1] <- 10
gw <- new("graphAM", adjMat=mat, values=list(weight=1))

## consistency check:[#一致性检查:]
stopifnot(identical(mat, as(gw, "matrix")),
          validObject(gw),
          identical(gw, as(as(gw, "graphNEL"), "graphAM")))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 15:07 , Processed in 0.024090 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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