View source: R/edgelist_from_text.R

edgelist_from_text | R Documentation |

Create edgelist matrices from 'graph6', 'sparse6', or 'digraph6' symbols

```
edgelist_from_text(object, ...)
```

`object` |
character vector of 'graph6', 'sparse6', or 'digraph6' symbols |

`...` |
other arguments, currently ignored |

If `object`

contains 'graph6' or 'digraph6' symbols, which are in
fact encoded adjacency matrices, the function will return corresponding
edgelist matrices creating temporary igraph objects internally.

A list of edgelist matrices.

```
# Graph6 symbols
sampleg6
edgelist_from_text(sampleg6)
# Sparse6 symbols
s6 <- c(":DgXI@G~", ":DgWCgCb")
edgelist_from_text(s6)
# Digraph6 symbol
d6 <- "&N????C??D?_G??C?????_?C_??????C??Q@O?G?"
edgelist_from_text(d6)
```

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.