Using the Fruchterman Reingold layout algorithm
The Fruchterman Reingold layout algorithm belongs to the class of force-directed algorithms. It is one of the standard algorithms in Gephi and is made use of quite often.
How to do it…
We will begin with the Les Misérables network and explain how to use the Fruchterman Reingold layout algorithm on it. The steps remain the same for any other network, too. So let's get started:
Load the Les Misérables graph in Gephi.
In the Layout panel, click on the drop-down menu that says ---Choose a layout.
From the drop-down menu, select Fruchterman Reingold.
Hit Run. The chosen graph with the new layout appears in the Graph panel.
The following screenshot shows how the Les Misérables graph will look with the new layout:
How it works…
In the Fruchterman Reingold layout algorithm, the nodes are assumed to be entities made of steel and the edges are assumed to be springs. The attractive force between the nodes mimics the spring force, whereas the repulsive force between...