View source: R/class-network.R
| get_source | R Documentation |
Extracts the source type string from a cograph_network object's metadata.
get_source(x)
x |
A cograph_network object. |
A character string indicating the input type (e.g., "matrix", "tna", "igraph", "edgelist"), or "unknown" if not set.
as_cograph, get_meta
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_source(net) # "matrix"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.