Skip to contents

Number of parts of a given object type

Usage

nparts(x, ...)

Arguments

x

An ACSet.

...

Arguments passed to methods.

Value

Integer count of parts.

Examples

sch <- BasicSchema(obs = c("V"), homs = list())
g <- ACSet(sch)
add_parts(g, "V", 5)
#> [1] 1 2 3 4 5
nparts(g, "V")
#> [1] 5