View source: R/data-access-io-prepare.R
| convert_network | R Documentation |
This is the central object-to-object conversion interface. Use
import_network() for files and tabular edge data, and read_network() for
graph file formats handled by igraph, and export_network() to write
third-party graph formats.
convert_network(
from,
to = c("igraph", "sparse", "legacy"),
case_sensitive = FALSE
)
from |
An igraph object, sparse matrix, indexed sparse network, or legacy NEArender network. |
to |
Output representation: |
case_sensitive |
Preserve identifier case. |
A normalized network in the requested representation.
as_igraph_network(), as_sparse_network(), as_nearender_network(),
import_network(), read_network(), export_network()
graph <- import_network(data.frame(from = "A", to = "B"),
species = NULL, input_id_format = "custom", verbose = FALSE)
sparse <- convert_network(graph, "sparse")
legacy <- convert_network(sparse, "legacy")
legacy$links
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.