View source: R/data-access-io-prepare.R
| as_sparse_network | R Documentation |
The returned object stores binary topology in adjacency and, when
available, edge weights in a separate weights sparse matrix. Keeping
these matrices separate prevents source edge scores from silently becoming
transition probabilities in graph-based calculations.
as_sparse_network(network, case_sensitive = FALSE)
network |
An igraph, sparse matrix, legacy NEArender, or indexed NEArender network. |
case_sensitive |
Preserve identifier case. |
A nearender_sparse_network object.
as_igraph_network(), as_nearender_network(), convert_network()
graph <- import_network(data.frame(from = "A", to = "B", score = 2),
score_column = "score", species = NULL, input_id_format = "custom",
verbose = FALSE)
sparse <- as_sparse_network(graph)
sparse$adjacency
sparse$weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.