View source: R/neighbor_graph.R
adjacency.neighbor_graph | R Documentation |
Extract the adjacency matrix from a neighbor_graph object.
## S3 method for class 'neighbor_graph'
adjacency(x, attr = "weight")
x |
A neighbor_graph object. |
attr |
A character string specifying the attribute to use for the adjacency matrix. |
A Matrix object representing the adjacency matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.