View source: R/radius_graphs.R
| summary.rknn_graphs | R Documentation |
Provides a compact table of graph characteristics for an
"rknn_graphs" object created by create.rknn.graphs() or
cpp.create.rknn.graphs(). The table reports final edge counts,
component-repair counts, degree summaries, and density/sparsity for each
adaptive-radius k.scale value.
## S3 method for class 'rknn_graphs'
summary(object, ...)
object |
An object of class |
... |
Additional arguments passed to or from other methods; currently unused. |
Invisibly returns a data frame with one row per graph and columns:
idx |
Position of the graph in the returned graph sequence. |
k |
The adaptive-radius |
n_vertices |
Number of graph vertices. |
n_ccomp |
Number of connected components in the final graph. |
n_ccomp_before_repair |
Number of components before component-MST repair. |
edges |
Final number of undirected edges. |
edges_before_pruning |
Number of edges before geometric pruning. |
edges_after_pruning |
Number of edges after geometric pruning and before optional component repair. |
mst_edges_added |
Number of component-MST repair edges added. |
mean_degree |
Average vertex degree in the final graph. |
min_degree |
Minimum vertex degree. |
median_degree |
Median vertex degree. |
max_degree |
Maximum vertex degree. |
max_degree_over_median |
Ratio of maximum to median degree, or
|
universal_vertices |
Number of vertices adjacent to every other vertex. |
density |
Final graph density. |
sparsity |
One minus graph density. |
create.rknn.graphs(), cpp.create.rknn.graphs()
X <- matrix(c(0, 1, 3, 4), ncol = 1)
graphs <- create.rknn.graphs(
X,
kmin = 1,
kmax = 2,
radius.search = "all.pairs",
graph.detail = "minimal",
prune.method = "none"
)
summary(graphs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.