View source: R/adjacency_from_text.R

adjacency_from_text | R Documentation |

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

```
adjacency_from_text(object, ...)
```

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

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

If `object`

contains 'sparse6' symbols, which are in fact encoded
edgelists, the function will return corresponding adjacency matrices
creating temporary igraph objects internally.

A list of adjacency matrices.

```
# Graph6 symbols
sampleg6
adjacency_from_text(sampleg6)
# Sparse6 symbols
s6 <- c(":DgXI@G~", ":DgWCgCb")
adjacency_from_text(s6)
# Digraph6 symbol
d6 <- "&N????C??D?_G??C?????_?C_??????C??Q@O?G?"
adjacency_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.