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

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

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

                                         Random Edge Graph  
                                         随机边缘图

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

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

A function to create random graphs according to a random edge model. The user supplies the set of nodes for the graph as V and either a probability, p, that is used for each edge or the number of edges, edges they want to have in the resulting graph.
函数创建随机图,根据随机边缘模型。用户提供V和一个概率,p,即每边或边数,edges,“他们要在图的节点集结果图。


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


randomEGraph(V, p, edges)



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

参数:V
The nodes for the graph.  
为图中的节点。


参数:p
The probability of an edge being selected.  
边缘被选中的概率。


参数:edges
The number of edges wanted.  
想边数。


Details

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

The user must specify the set of nodes and either a probability for edge selection or the number of edges wanted, but not both. Let nV denote the number of nodes. There are choose(nV, 2) edges in the complete graph. If p is specified then a biased coin (probability of heads being p) is tossed for each edge and if it is heads that edge is selected. If edges is specified then that many edges are sampled without replacement from the set of possible edges.
用户必须指定节点和边缘选择或想边数的概率,但不能同时。让nV表示节点的数量。有choose(nV, 2)完整的图中的边缘。如果p被指定,那么有偏见硬币(是头的概率p),每边扔,如果它是头边缘被选中。如果edges被指定,那么,许多边缘没有更换一套从边缘可能采样。


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

An object of class graphNEL-class that contains the nodes and edges.
graphNEL-class类的对象包含的节点和边。


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


R. Gentleman



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

randomGraph
randomGraph


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


  set.seed(123)
  V <- letters[14:22]
  g1 <- randomEGraph(V, .2)

  g2 <- randomEGraph(V, edges=30)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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