rgg v1.0.0 RGG.Square

Link to this section Summary

Functions

This function calculates the radius that is used to connect nodes in the square topology of graph. The parameters are n, and a. The returned radius will yield average degree a when connecting randomly generated points on the unit square

Link to this section Functions

Link to this function calculate_radius_square(n, a)

This function calculates the radius that is used to connect nodes in the square topology of graph. The parameters are n, and a. The returned radius will yield average degree a when connecting randomly generated points on the unit square.

Examples

iex> RGG.Square.calculate_radius_square(1000, 25)
0.08920620580763855
Link to this function random_point(id \\ nil)
Link to this function unit_square(n, a)