network_from_text: Create network objects from 'graph6', 'sparse6', or...

View source: R/network_from_text.R

network_from_textR Documentation

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

Description

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

Usage

network_from_text(object)

Arguments

object

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

Value

A list of 'network' objects.

Examples

# complete graph in graph6 format
g6 <- "G~~~~{"

# random graph with 15 nodes
s6 <- ":NeF?bsl?aNC"

# random directed graph with 10 nodes
d6 <- "&I???GGGI?_gG??O???"

network_from_text(g6)
network_from_text(c(g6,s6,d6))


mbojan/rgraph6 documentation built on Sept. 25, 2024, 2:14 a.m.