Group Abstract Group Abstract

Message Boards Message Boards

1
|
4.8K Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

[?] DirectedEdges invalid for small-world nor scale-free network generation

Posted 8 years ago

Dear Community,

I tried to generate a directed-edged small-world network using

RandomGraph[WattsStrogatzGraphDistribution[10, 0.4], 
 DirectedEdges -> True]

But was prompted that the call was made with invalid parameters. The same message was given for BarabasiAlbertGraphDistribution[10, 2].

Are the theories of small-world and scale-free networks not applicable to directed-edged networks? Or does just RandomGraph not allow these? For what reasons?

But RandomGraph generates directed-edged networks with BernoulliGraphDistribution and UniformGraphDistribution.

POSTED BY: Chi-Hsiang Wang
2 Replies

Many thanks for these excellent solutions, Szabolcs! DirectedGraph with option of either "Acyclic" or "Random" works fine for me now.

Thanks also for your effort creating IGraph/M, I'm sure I'll use it someday in future!

POSTED BY: Chi-Hsiang Wang
POSTED BY: Szabolcs Horvát
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard