cohesive_fruchterman_reingold#
- cohesive_fruchterman_reingold(graph, iter_count=100, scale=1.0, node_start_size=1.0, cooloff_factor=0.95, dt=0.1)#
Cohesive version of fruchterman_reingold that adds virtual edges between isolated nodes :param graph: A reference to the graph :type graph: GraphView :param iter_count: The number of iterations to run. Defaults to 100. :type iter_count: int :param scale: Global scaling factor to control the overall spread of the graph. Defaults to 1.0. :type scale: float :param node_start_size: Initial size or movement range for nodes. Defaults to 1.0. :type node_start_size: float :param cooloff_factor: Factor to reduce node movement in later iterations, helping stabilize the layout. Defaults to 0.95. :type cooloff_factor: float :param dt: Time step or movement factor in each iteration. Defaults to 0.1. :type dt: float
- Returns:
A mapping from nodes to their [x, y] positions
- Return type: