Book Image

Gephi Cookbook

Book Image

Gephi Cookbook

Overview of this book

Table of Contents (18 chapters)
Gephi Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Generating a random graph


A random graph with n nodes is a graph generated by starting with n nodes with no edges existing between any pair of nodes, and then randomly adding edges between nodes in a probabilistic fashion. This recipe describes the process of generating one such random graph in Gephi.

How to do it…

The steps to generate a random graph with n nodes are as follows:

  1. Click on File in the menu bar.

  2. Choose Generate in the drop-down menu.

  3. Choose Random Graph in the extended menu. You'll see the following pop-up window on the screen:

  4. In the Number of nodes textbox, enter the number of nodes (n) that you want the random graph to have.

  5. In the Wiring probability textbox, enter the probability (p), according to where you would like the edges to be added between different pairs of nodes in the random graph. A low wiring probability will result in a regular lattice. On the other hand, the higher the wiring probability is, the more random the resulting graph will be.

  6. Click on OK. This generates...