igraph (version 0.7.0)

as.igraph: Conversion to igraph

Description

These fucntions convert various objects to igraph graphs.

Usage

## S3 method for class 'igraphHRG':
as.igraph(x, \dots)

Arguments

x
The object to convert.
...
Additional arguments. None currently.

Value

  • All these functions return an igraph graph.

concept

Hierarchical random graphs

Details

You can use as.igraph to convert various objects to igraph graphs. Right now the following objects are supported:

Examples

Run this code
g <- graph.full(5) + graph.full(5)
hrg <- hrg.fit(g)
as.igraph(hrg)

Run the code above in your browser using DataCamp Workspace