Some words of caution.

1) randomEGraph is REALLY slow. The 'igraph' package on CRAN has a function
called 'erdos.renyi.game' that is much faster. In case you need to create
large or many graphs.

2) I don't know what algorithm 'randomNodeGraph' uses, but this is a
non-trivial
problem if you want to assign a uniform probability over the graphs with the
given degree
sequence, see e.g. http://arxiv.org/abs/cond-mat/0312028v1
'igraph' has a function called 'degree.sequence.game', which does the same,
but uses a
naive algorithm that 1) generates non-simple graphs and 2) known to be
biased.

Gabor

On Thu, Apr 24, 2008 at 1:21 PM, <lgautier@altern.org> wrote:

> You need the package "graph":
>
> randomEGraph(graph)     Random Edge Graph
> randomGraph(graph)      Random Graph
> randomNodeGraph(graph)
>                        Generate Random Graph with Specified Degree
>                        Distribution
>
>
>
>
> > hi ,everyone
> >  i want to create a random graph with certain degree distribution, a
> > certain
> > number of edges,and a certain number of nodes,however,i can't find a
> > package
> > in bioconductor ,perhaps ,the packages i find isn't enough.is there
> anyone
> > tell me the package or some other method to achieve.
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > Bioconductor mailing list
> > Bioconductor@stat.math.ethz.ch
> > https://stat.ethz.ch/mailman/listinfo/bioconductor
> > Search the archives:
> > http://news.gmane.org/gmane.science.biology.informatics.conductor
> >
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

