| igraph Reference Manual |
|---|
int igraph_layout_fruchterman_reingold_3d(const igraph_t *graph, igraph_matrix_t *res, igraph_integer_t niter, igraph_real_t maxdelta, igraph_real_t volume, igraph_real_t coolexp, igraph_real_t repulserad, igraph_bool_t use_seed, const igraph_vector_t *weight);
This is the 3D version of the force based
Fruchterman-Reingold layout (see igraph_layout_fruchterman_reingold for the 2D version
This function was ported from the SNA R package.
Arguments:
|
Pointer to an initialized graph object. |
|
Pointer to an initialized matrix object. This will contain the result and will be resized in needed. |
|
The number of iterations to do. |
|
The maximum distance to move a vertex in an iteration. |
|
The volume parameter of the algorithm. |
|
The cooling exponent of the simulated annealing. |
|
Determines the radius at which vertex-vertex repulsion cancels out attraction of adjacent vertices. |
|
Logical, if true the supplied values in the
|
|
Pointer to a vector containing edge weights, the attraction along the edges will be multiplied by these. It will be ignored if it is a null-pointer. |
Returns:
Error code. |
Added in version 0.2.
Time complexity: O(|V|^2) in each iteration, |V| is the number of vertices in the graph.
<< 2.2. igraph_layout_sphere — Places vertices (more or less) uniformly on a sphere. |
2.4. igraph_layout_kamada_kawai_3d — 3D version of the force based Kamada-Kawai layout. >> |