# as_graphnel

From igraph v1.0.0
by Gabor Csardi

##### Convert igraph graphs to graphNEL objects from the graph package

The graphNEL class is defined in the `graph`

package, it is another
way to represent graphs. These functions are provided to convert between
the igraph and the graphNEL objects.

##### Usage

`as_graphnel(graph)`

##### Arguments

- graph
- An igraph graph object.

##### Details

`as_graphnel`

converts and igraph graph to a graphNEL graph. It
converts all graph/vertex/edge attributes. If the igraph graph has a
vertex attribute `name`

##### Value

`as_graphnel`

returns a graphNEL graph object.

##### See Also

`graph_from_graphnel`

for the other direction,
`as_adj`

, `graph_from_adjacency_matrix`

,
`as_adj_list`

and `graph.adjlist`

for
other graph representations.

##### Examples

```
## Undirected
g <- make_ring(10)
V(g)$name <- letters[1:10]
GNEL <- as_graphnel(g)
g2 <- graph_from_graphnel(GNEL)
g2
## Directed
g3 <- make_star(10, mode="in")
V(g3)$name <- letters[1:10]
GNEL2 <- as_graphnel(g3)
g4 <- graph_from_graphnel(GNEL2)
g4
#'
```

*Documentation reproduced from package igraph, version 1.0.0, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.