powered by
Create a signed graph from an edgelist matrix
graph_from_edgelist_signed(el, signs, directed = FALSE)
a signed network as igraph object
The edgelist, a two column matrix, character or numeric.
vector indicating the sign of edges. Entries must be 1 or -1.
whether to create a directed graph.
el <- matrix(c("foo", "bar", "bar", "foobar"), ncol = 2, byrow = TRUE) signs <- c(-1, 1) graph_from_edgelist_signed(el, signs)
Run the code above in your browser using DataLab