Hypergraph-class(hypergraph)
Hypergraph-class()所属R语言包:hypergraph
Class Hypergraph
一类超图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A hypergraph consists of a set of nodes and a set of hyperedges. Each hyperedge is a subset of the node set. This class provides a representation of a hypergraph that is (hopefully) useful for computing.
一个超图由一组节点和一组超边。每个hyperedge是节点集的一个子集。这个类提供了一个超表示,这是(希望)计算有用。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("Hypergraph", nodes, hyperedges). You can also use the convenience function Hypergraph. The nodes argument should be a character vector of distinct labels representing the nodes of the hypergraph. The hyperedges argument must be a list of Hyperedge-class objects.
创建对象可以通过检测的形式new("Hypergraph", nodes, hyperedges)。你也可以用方便的功能Hypergraph。 nodes参数应该是一个不同的标签代表的超图的节点的特征向量。 hyperedges参数必须是一个Hyperedge-class对象的名单。
插槽----------Slots----------
nodes: A "character" vector specifying the nodes
nodes:"character"向量指定的节点
hyperedges: A "list" of
hyperedges:"list"
方法----------Methods----------
hyperedges signature(.Object = "Hypergraph"): Return
超边signature(.Object = "Hypergraph"):返回
hyperedgeLabels signature(.Object = "Hypergraph"): Return a character vector of labels for the Hyperedge objects in the
hyperedgeLabelssignature(.Object = "Hypergraph"):Hyperedge对象返回的标签特征向量
inciMat signature(.Object = "Hypergraph"): Return the
inciMatsignature(.Object = "Hypergraph"):返回
inciMat2HG signature(.Object = "matrix"): Return the
inciMat2HG signature(.Object = "matrix"):返回
initialize signature(.Object = "Hypergraph"): Create
初始化signature(.Object = "Hypergraph"):创建
nodes signature(object = "Hypergraph"): Return the
节点signature(object = "Hypergraph"):返回
numNodes signature(object = "Hypergraph"): Return the
numNodessignature(object = "Hypergraph"):返回
toGraphNEL signature(.Object = "Hypergraph"): Return the graphNEL representation of the hypergraph (a bipartite
toGraphNELsignature(.Object = "Hypergraph"):返回graphNEL超图表示(二部
作者(S)----------Author(s)----------
Seth Falcon
参见----------See Also----------
Hyperedge-class DirectedHyperedge-class graphNEL-class
Hyperedge-classDirectedHyperedge-classgraphNEL-class
举例----------Examples----------
nodes <- LETTERS[1:4]
hEdges <- lapply(list("A", LETTERS[1:2], LETTERS[3:4]), "Hyperedge")
hg <- new("Hypergraph", nodes=nodes, hyperedges=hEdges)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|