as_adjacency | R Documentation |
Functions to place adjacency object in a specific format.
as.adjMatrix(x, valid = FALSE, n)
as.adjList(x, valid = FALSE, n)
x |
object containing edge information |
valid |
logical indicating whether format is already correct |
n |
number of vertices |
If valid = TRUE
then for as.adjMatrix
the argument x
should be a
valid adjacency matrix, and no checks are performed. Similarly for as.adjList
the object should be a valid adjacency list.
as.adjMatrix()
: Convert to an adjMatrix
object
as.adjList()
: Convert to an adjList
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.