graph_from_edgelist_signed | R Documentation |
Create a signed graph from an edgelist matrix
graph_from_edgelist_signed(el, signs, directed = FALSE)
el |
The edgelist, a two column matrix, character or numeric. |
signs |
vector indicating the sign of edges. Entries must be 1 or -1. |
directed |
whether to create a directed graph. |
a signed network as igraph object
el <- matrix(c("foo", "bar", "bar", "foobar"), ncol = 2, byrow = TRUE)
signs <- c(-1, 1)
graph_from_edgelist_signed(el, signs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.