Create igraph objects from 'graph6', 'sparse6', or 'digraph6' symbols
Source:R/igraph_from_text.R
igraph_from_text.Rd
Create igraph objects from 'graph6', 'sparse6', or 'digraph6' symbols
Examples
if(requireNamespace("igraph", quietly=TRUE)) {
# Graph6 symbols
sampleg6
igraph_from_text(sampleg6)
# Sparse6 symbols
s6 <- c(":DgXI@G~", ":DgWCgCb")
igraph_from_text(s6)
# Digraph6 symbol
d6 <- "&N????C??D?_G??C?????_?C_??????C??Q@O?G?"
igraph_from_text(d6)
}
#> [[1]]
#> IGRAPH 51b1581 D--- 15 15 --
#> + edges from 51b1581:
#> [1] 2->13 4-> 1 4-> 3 4->10 5-> 3 6-> 7 8->10 9->10 9->13 12->13
#> [11] 13->14 14-> 2 14-> 9 14->11 15-> 9
#>