R: Coerce network to igraph

network_to_igraph {ggraph} | R Documentation

## Coerce network to igraph

### Description

This utility function performs a conversion of network objects from the network package into igraph object compatible with ggraph. Edge and node attributes are preserved which, for the context of ggraph, is the most important.

### Usage

    network_to_igraph(graph)

### Arguments

`graph` | A graph as a network object

### Value

A representation of the same graph as given in the function call but as an igraph object.

[Package ggraph version 1.0.2 Index]