sc-print: Printing simplicial complexes

Description Usage Arguments Examples

Description

These functions adapt tibble::format.tbl(), tibble::print.tbl(), and the unexported function node_tibble() from tidygraph::tidygraph to conveniently display data separately on the observation and cluster nodes of the bipartite igraph::igraph object that encodes a simplicial complex.

Usage

1
2
## S3 method for class 'sc'
print(x, ...)

Arguments

x

Bipartite igraph::igraph object, representing a simplicial complex.

...

Additional parameters passed to tibble::trunc_mat().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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)
sc_vertices(wiki_sc, simplices = letters[1:3])
sc_simplices(wiki_sc, vertices = 1:5)

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