Force-directed layout that replicates Gephi's Fruchterman-Reingold algorithm. This is a strict port of the Java implementation from Gephi's source code.
layout_gephi_fr(g, area = 10000, gravity = 10, speed = 1, niter = 100)A matrix with x,y coordinates for each node.
An igraph graph object.
Area parameter controlling node spread. Default 10000.
Gravity force pulling nodes toward center. Default 10.0.
Speed/cooling parameter. Default 1.0.
Number of iterations. Default 100.
This layout is a direct port of Gephi's ForceAtlas algorithm variant of Fruchterman-Reingold. Key differences from igraph's layout_with_fr:
Uses Gephi's specific constants (SPEED_DIVISOR=800, AREA_MULTIPLICATOR=10000)
Includes configurable gravity toward center
Different cooling/speed mechanism