powered by
Create signed graphs from adjacency matrices
graph_from_adjacency_matrix_signed(A, mode = "undirected", ...)
a signed network as igraph object
square adjacency matrix of a signed graph
Character scalar, specifies how to interpret the supplied matrix. Possible values are: directed, undirected
additional parameters for from_adjacency()
from_adjacency()
A <- matrix(c(0,1,-1,1,0,1,-1,1,0),3,3) graph_from_adjacency_matrix_signed(A)
Run the code above in your browser using DataLab