Skip to contents

Coerce a Weight Matrix into an igraph Object.

Usage

# S3 method for class 'matrix'
as.igraph(x, directed = TRUE, ...)

Arguments

x

The object to convert.

directed

A logical value. If TRUE, assumes that the graph is directed and undirected otherwise.

...

Additional arguments. None currently.

Value

An igraph object.

See also

Helper functions as.igraph.group_tna(), as.igraph.tna()