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

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

[复制链接]
发表于 2012-2-25 22:05:03 | 显示全部楼层 |阅读模式
graphBPH-class(hyperdraw)
graphBPH-class()所属R语言包:hyperdraw

                                        Class "graphBPH"
                                         类“graphBPH”

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

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

A bipartite representation of a hypergraph. The purpose of this class is to support visualization of the hypergraph;  it is not intended for analysis or manipulation
一个一个超偶代表。这个类的目的是支持的超图的可视化分析或操纵它不打算


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

Objects can be created by calls of the form new("graphBPH",     graph, edgeNodePattern, ...). There is also a convenience function graphBPH().
创建对象可以通过检测的形式new("graphBPH",     graph, edgeNodePattern, ...)。还有一个方便的功能graphBPH()。

A graphBPH object consists of a graphNEL object, which must obey some strict rules:
一个graphBPH对象包括graphNEL对象,必须遵守一些严格的规则:

nodes in the graph are divided into two sets: normal nodes and edge-nodes,
图中的节点分为两组:正常节点和边缘节点,

all edges in the graph must connect a normal node to an edge node,
图中所有的边缘都连接到边缘节点的正常节点,

the graph must be a directed graph.
图形必须是一个有向图。

The edgeNodePattern is a regular expression that is used to define the set of edge-nodes.
edgeNodePattern是一个正则表达式,用来定义边缘节点的集合。


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




graph: Object of class graphNEL.  This graph
graph类graphNEL的对象。此图




edgeNodePattern: Object of class character.
edgeNodePattern类character的对象。




nodes: Object of class character.
nodes类character的对象。




edgeNodes: Object of class character.
edgeNodes类character的对象。




edgeNodeIO: Object of class list. Records information about which edges enter and exit
edgeNodeIO类list的对象。记录的信息,哪些边缘的进入和退出


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




plot signature(x = "graphBPH"): draw a representation of the hypergraph where edges between normal nodes in the graph pass through an intermediate
图signature(x = "graphBPH"):这里边画一个超图表示图通的正常节点之间通过中间




graphLayout signature(graph = "graphBPH",   layoutType = "missing"): convert the graphBPH object to a RagraphBPH object (using a default layout method).
graphLayoutsignature(graph = "graphBPH",   layoutType = "missing"):graphBPH对象转换成一个RagraphBPH对象(使用默认的布局方法)。




graphLayout signature(graph = "graphBPH",   layoutType = "character"): convert the graphBPH object to a RagraphBPH object (using the specified layout method).
graphLayoutsignature(graph = "graphBPH",   layoutType = "character"):graphBPHRagraphBPH对象(使用指定的布局方法)对象的转换。


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


Paul Murrell



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

An open graph visualization system and its applications to software engineering, Software - Practice and Experience, 30:1203–1233.
<code>graph</code>: A package to handle graph data structures.
Hahne, F. and Sarkar, D. and Hansen, K.  <code>Rgraphviz</code>: Provides plotting capabilities for R graph objects.

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

agopen, graphLayout and graphNEL RagraphBPH
agopen,graphLayout和graphNELRagraphBPH


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


nodes <- c(LETTERS[1:5], paste("R", 1:3, sep=""))
testgnel <- new("graphNEL",
                nodes=nodes,
                edgeL=list(
                  A=list(edges=c("R1", "R2")),
                  B=list(edges="R2"),
                  C=list(),
                  D=list(edges="R3"),
                  E=list(),
                  R1=list(edges="B"),
                  R2=list(edges=c("C", "D")),
                  R3=list(edges="E")),
                edgemode="directed")
testbph <- graphBPH(testgnel, "^R")
plot(testbph)

# A Hypergraph equivalent[一个超等价]
dh1 <- DirectedHyperedge("A", "B", "R1")
dh2 <- DirectedHyperedge(c("A", "B"), c("C", "D"), "R2")
dh3 <- DirectedHyperedge("D", "E", "R3")
hg <- Hypergraph(LETTERS[1:5], list(dh1, dh2, dh3))
plot(graphBPH(hg))                 

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-5 22:59 , Processed in 0.025075 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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