| print.mknn_graph | R Documentation |
Prints a concise summary of a mutual k-nearest neighbor graph object.
## S3 method for class 'mknn_graph'
print(x, ...)
x |
An object of class "mknn_graph". |
... |
Additional arguments (currently unused). |
Invisibly returns the input object.
graph <- list(
n_vertices = 3L,
n_edges = 2L,
k = 2L,
adj_list = list(c(2L), c(1L, 3L), c(2L))
)
class(graph) <- c("mknn_graph", "list")
print(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.