edgelist_from_text {rgraph6} | R Documentation |
Create edgelist matrices from 'graph6', 'sparse6', or 'digraph6' symbols
Description
Create edgelist matrices from 'graph6', 'sparse6', or 'digraph6' symbols
Usage
edgelist_from_text(object, ...)
Arguments
object |
character vector of 'graph6', 'sparse6', or 'digraph6' symbols |
... |
other arguments, currently ignored |
Details
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.
Value
A list of edgelist matrices.
Examples
# 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)
[Package rgraph6 version 2.0-4 Index]