igraph_from_text: Create igraph objects from 'graph6', 'sparse6', or 'digraph6'...

View source: R/igraph_from_text.R

igraph_from_textR Documentation

Create igraph objects from 'graph6', 'sparse6', or 'digraph6' symbols

Description

Create igraph objects from 'graph6', 'sparse6', or 'digraph6' symbols

Usage

igraph_from_text(object)

Arguments

object

character vector of 'graph6', 'sparse6', or 'digraph6' symbols

Value

A list of 'igraph' objects.

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)
}

mbojan/rgraph6 documentation built on Feb. 4, 2024, 3:40 p.m.