igraph_layout_random

Function igraph_layout_random 

Source
pub unsafe extern "C" fn igraph_layout_random(
    graph: *const igraph_t,
    res: *mut igraph_matrix_t,
) -> igraph_error_t
Expand description

\section about_layouts

Layout generator functions (or at least most of them) try to place the vertices and edges of a graph on a 2D plane or in 3D space in a way which visually pleases the human eye.

They take a graph object and a number of parameters as arguments and return an \type igraph_matrix_t, in which each row gives the coordinates of a vertex.