Description Usage Arguments Details Value See Also Examples

Sometimes it is useful to work with a standard representation of a graph, like an edge list.

1 | ```
as_edgelist(graph, names = TRUE)
``` |

`graph` |
The graph to convert. |

`names` |
Whether to return a character matrix containing vertex
names (ie. the |

`as_edgelist`

returns the list of edges in a graph.

A `gsize(graph)`

by 2 numeric matrix.

`graph_from_adjacency_matrix`

, `read_graph`

1 2 3 4 5 | ```
g <- sample_gnp(10, 2/10)
as_edgelist(g)
V(g)$name <- LETTERS[seq_len(gorder(g))]
as_edgelist(g)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.