edgelist_from_text: Create edgelist matrices from 'graph6', 'sparse6', or...

View source: R/edgelist_from_text.R

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

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