The function allows to prune a graph by removing the links with the largest weights until the graph breaks into two components. The returned graph is the last graph with only one component.
g_percol(x, val_step = 20)
The number of classes to create to search for the threshold value without testing all the possibilities. By default, 'val_step = 20'.
A graph object of type
data(data_ex_genind) suppressWarnings(mat_w <- graph4lg::mat_geo_dist(data = pts_pop_ex, ID = "ID", x = "x", y = "y")) g_percol(x = mat_w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.