View source: R/geodesic_stats.R
| compute.geodesic.stats | R Documentation |
Analyzes how the number of geodesics scales with radius for each grid vertex. This function helps determine if collapsing/clustering geodesics is necessary and provides insights into the graph structure around grid vertices.
compute.geodesic.stats(
adj.list,
weight.list,
min.radius = 0.2,
max.radius = 0.5,
n.steps = 5,
n.packing.vertices = length(adj.list),
max.packing.iterations = 20,
packing.precision = 1e-04,
verbose = FALSE
)
adj.list |
List of integer vectors. Each vector contains indices of vertices adjacent to the corresponding vertex. Indices should be 1-based. |
weight.list |
List of numeric vectors. Each vector contains weights of edges corresponding to adjacencies in adj.list. |
min.radius |
Numeric. Minimum radius as a fraction of graph diameter. |
max.radius |
Numeric. Maximum radius as a fraction of graph diameter. |
n.steps |
Integer. Number of radius steps to test. |
n.packing.vertices |
Integer. Number of vertices in the grid/packing. |
max.packing.iterations |
Integer. Maximum iterations for packing algorithm. |
packing.precision |
Numeric. Precision parameter for packing algorithm. |
verbose |
Logical. Whether to print progress information. |
A list of class "geodesic_stats" containing:
Numeric vector. Actual radii used in the analysis.
Matrix. Number of geodesic rays for each vertex at each radius.
Matrix. Number of composite geodesics for each vertex at each radius.
List of matrices. Overlap statistics for each vertex at each radius.
Integer vector. The vertices selected as grid vertices.
Data frame. Summary statistics for each radius.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.