as.igraph.matrix {tna} | R Documentation |
Coerce a Weight Matrix into an igraph
Object.
Description
Coerce a Weight Matrix into an igraph
Object.
Usage
## S3 method for class 'matrix'
as.igraph(x, mode = "directed", ...)
Arguments
x |
A |
mode |
Character scalar, specifies how igraph should interpret the
supplied matrix. See also the |
... |
Ignored. |
Value
An igraph
object.
See Also
Helper functions
as.igraph.group_tna()
,
as.igraph.tna()
[Package tna version 1.0.0 Index]