O'Reilly logo

Gephi Cookbook by Devangana Khokhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:
    How to do it…
  4. In the Number of nodes textbox, enter the number of nodes (n) that you want the random graph to have.
  5. In the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required