powered by
Extracts the source type string from a cograph_network object's metadata.
get_source(x)
A character string indicating the input type (e.g., "matrix", "tna", "igraph", "edgelist"), or "unknown" if not set.
A cograph_network object.
as_cograph, get_meta
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"
Run the code above in your browser using DataLab