igraph Object.Coerce a Weight Matrix into an igraph Object.
# S3 method for matrix
as.igraph(x, mode = "directed", ...)An igraph object.
A matrix of edge weights.
Character scalar, specifies how igraph should interpret the
supplied matrix. See also the weighted argument, the interpretation
depends on that too. Possible values are: directed,
undirected, upper, lower, max, min,
plus. See details below.
Ignored.
Helper functions
as.igraph.group_tna(),
as.igraph.tna()