Note: Development of this package has been discontinued. A convenient, elegant, and compact R package for analyzing simplicial complexes can be found in Matt Piekenbrock's simplextree.

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

sc: simplicial complexes encoded as bipartite graphs

sc is a convenience package for encoding simplicial complexes in R as bipartite graphs using the igraph package. It is intended for temporary use, until superior functionality and perforance are achieved by other medium-level packages, for example an R interface to the GUDHI C++ library --- or until i become aware of them!

Installation

Install the package from GitHub using the remotes package:

remotes::install_github("corybrunson/sc")

Example

A popular illustration from Wikimedia Commons provides an illustration:

library(sc)
# load data
data(wiki_sc)
# inspection and visualization
print(wiki_sc)
plot(wiki_sc, vertex.label = NA)
# vertices and simplices
sc_vertices(wiki_sc)
sc_simplices(wiki_sc)


corybrunson/sc documentation built on Aug. 27, 2019, 1:12 p.m.